Plugin Directory

Changeset 3007435


Ignore:
Timestamp:
12/08/2023 08:13:55 PM (2 years ago)
Author:
RogueWebDesign
Message:

updated deprecated provider chainId

Location:
web3-access/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • web3-access/trunk/js/products.js

    r2900896 r3007435  
    3232
    3333    confirm_correct_network(token, chainid, network_name) {
    34         if( chainid != web3_access_wallet_manager.provider.chainId ) {
     34        if( chainid != web3_access_wallet_manager.chainId ) {
    3535            var incorrect_network_message = '<p>Incorrect Network. Please change to the '+network_name+' network.';
    3636            if( chainid == '0x89' || chainid == '0x13881' ) {
     
    141141            let token_amount_label = payment_button.find('.metapress-payment-button-amount');
    142142            let network_chainid = payment_button.data('chainid');
    143             if( network_chainid == web3_access_wallet_manager.provider.chainId ) {
     143            if( network_chainid == web3_access_wallet_manager.chainId ) {
    144144                web3_access_wallet_manager.transaction_viewing_url = payment_button.data('explorer');
    145145            }
  • web3-access/trunk/js/wallet.js

    r2947859 r3007435  
    77    constructor() {
    88        this.provider = null;
     9        this.chainId = null;
    910        this.provider_slug = null;
    1011        this.connection = null;
     
    3940
    4041        this.web3 = new Web3(this.provider);
     42        this.chainId = await this.provider.request({ method: 'eth_chainId' });
    4143    }
    4244
  • web3-access/trunk/readme.txt

    r3003914 r3007435  
    44Tags: web3, web 3, cryptocurrency, NFT, restrict content, crypto, ERC-721, ERC-20, ERC-1155, metamask
    55Requires at least: 4.0
    6 Tested up to: 6.4.1
    7 Stable Tag: 1.5.9
     6Tested up to: 6.4.2
     7Stable Tag: 1.6.0
    88License: GPLv2 or later
    99
     
    5454== Changelog ==
    5555
     56= 1.6.0 =
     57
     58<ul>
     59<li>Updated deprecated ethereum provider chainId to RPC method</li>
     60</ul>
     61
    5662= 1.5.7 =
    5763
  • web3-access/trunk/updates/automatic-updates.php

    r3003914 r3007435  
    3535    }
    3636
    37     update_option('wp_metapress_plugin_version', '1.5.9');
     37    update_option('wp_metapress_plugin_version', '1.6.0');
    3838}
  • web3-access/trunk/web3-access.php

    r3003914 r3007435  
    66Author:      Rogue Web Design
    77Author URI:  https://www.roguewebdesign.ca
    8 Version:     1.5.9
     8Version:     1.6.0
    99License:     GPL2
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3636
    3737if( ! defined('INSTALLED_METAPRESS_PLUGIN_VERSION') ) {
    38     define('INSTALLED_METAPRESS_PLUGIN_VERSION', '1.5.9');
     38    define('INSTALLED_METAPRESS_PLUGIN_VERSION', '1.6.0');
    3939}
    4040
Note: See TracChangeset for help on using the changeset viewer.