- window.bytom.advancedTransfer(account, input, output, GetContractArgs().gas*10000000, args, 1)
- .then((resp) => {
- if(resp.action === 'reject'){
- reject('user reject the request')
- }else if(resp.action === 'success'){
- updateUtxo({"hash": utxo})
- .then(()=>{
+ updateUtxo({"hash": utxo})
+ .then(()=>{
+ window.bytom.advancedTransfer(input, output, GetContractArgs().gas*10000000, args, 1)
+ .then((resp) => {
+ if(resp.action === 'reject'){
+ reject('user reject the request')
+ }else if(resp.action === 'success'){
+ const transactionHash = resp.message.result.data.transaction_hash