张建楚 3 anos atrás
pai
commit
128caf456c
2 arquivos alterados com 2 adições e 5 exclusões
  1. 1 1
      src/wallet/BinanceChain.js
  2. 1 4
      src/wallet/WalletConnect.js

+ 1 - 1
src/wallet/BinanceChain.js

@@ -8,7 +8,7 @@ let walletMgr;
 
 async function init(_walletMgr,fun){
     walletMgr = _walletMgr;
-    CodeEnum = walletconfig.ReturnCodeEnum;
+    CodeEnum = walletMgr.ReturnCodeEnum;
     bscConnector = new BscConnector({
         supportedChainIds: [56, 97] 
     })

+ 1 - 4
src/wallet/WalletConnect.js

@@ -2,17 +2,14 @@
 import WalletConnectProvider from "@walletconnect/web3-provider";
 import EventDispatcher from './EventDispatcher.js';
 import BigNumber from 'bignumber.js';
-// import constants from './Constants.js';
-//import Web3Modal from "web3modal";
 let Web3 = require('web3')
-//let web3Modal
 let walletMgr;
 let provider;
 let codeEnum
 
 function init(_walletMgr,fun){
     walletMgr = _walletMgr;
-    codeEnum = walletconfig.ReturnCodeEnum;
+    codeEnum = walletMgr.ReturnCodeEnum;
     createProvider();
     connectWallectAccount(fun)
 }