Ver código fonte

web3优化结构

龚成明 2 anos atrás
pai
commit
58b0a2890d
1 arquivos alterados com 0 adições e 11 exclusões
  1. 0 11
      libs/web3/simple-web3.js

+ 0 - 11
libs/web3/simple-web3.js

@@ -1,5 +1,4 @@
 const Config = require('../../config/config.js')
-const ListenConfig = require('../../config/listen-config.js')
 const PrivateConfig = require('../../PrivateConfig.js')
 const TimeKit = require('../../kit/time-kit')
 const Web3 = require('web3')
@@ -12,16 +11,6 @@ SimpleWeb3.init = function() {
   if (SimpleWeb3.web3) return
 
   SimpleWeb3.web3 = new Web3(Config.WEB3_RPC_URL)
-
-  // Config.baseToken.contractModel = new SimpleWeb3.web3.eth.Contract(Config.BASE_ABI, Config.baseToken.contract, {
-  //   from: PrivateConfig.address
-  // })
-  //
-  // for (const token of ListenConfig.tokenList) {
-  //   token.contractModel = new SimpleWeb3.web3.eth.Contract(token.BASE_ABI, token.contract, {
-  //     from: PrivateConfig.address
-  //   })
-  // }
 }
 
 SimpleWeb3.getBalance = async function(address) {