Skip to content

Commit

Permalink
Merge pull request #76 from ChainSafe/networkId-int
Browse files Browse the repository at this point in the history
networkId type int
  • Loading branch information
KBryan authored Jan 19, 2022
2 parents 923cbbb + c1eb2ce commit 8e018f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WebGLTemplates/Web3GL-2019/web3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function connect() {
web3 = new Web3(provider);

// set current network id
web3gl.networkId = parseInt(provider.chainId).toString();
web3gl.networkId = parseInt(provider.chainId);

// if current network id is not equal to network id, then switch
if (web3gl.networkId != window.web3ChainId) {
Expand Down
2 changes: 1 addition & 1 deletion WebGLTemplates/Web3GL-2020/web3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function connect() {
web3 = new Web3(provider);

// set current network id
web3gl.networkId = parseInt(provider.chainId).toString();
web3gl.networkId = parseInt(provider.chainId);

// if current network id is not equal to network id, then switch
if (web3gl.networkId != window.web3ChainId) {
Expand Down

0 comments on commit 8e018f0

Please sign in to comment.