Browse Source

修改为BSC网络登录

master
yyy 7 months ago
parent
commit
48a92b534b
  1. 2
      src/wallet/chain.js
  2. 2
      src/wallet/metamask.js

2
src/wallet/chain.js

@ -5,7 +5,7 @@ export default {
symbol: "FIL" symbol: "FIL"
}, },
blockExplorerUrls: ['https://explorer.glif.io'], blockExplorerUrls: ['https://explorer.glif.io'],
chainId: '0x13a',//314
chainId: '0x38',//314
chainName: 'Filecoin Mainnet', chainName: 'Filecoin Mainnet',
rpcUrls: ['https://api.node.glif.io/rpc/v1'] /* ... */, rpcUrls: ['https://api.node.glif.io/rpc/v1'] /* ... */,
} }

2
src/wallet/metamask.js

@ -36,7 +36,7 @@ async function metamask(callback) {
}) })
if (parseInt(chainId) != parseInt(chain.chainId)) { if (parseInt(chainId) != parseInt(chain.chainId)) {
MessageBox.alert('请切换到FIL网络后再登录', {
MessageBox.alert('请切换到BSC网络后再登录', {
customClass: 'metacustomClass' customClass: 'metacustomClass'
}) })
// try { // try {

Loading…
Cancel
Save