Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySciTech committed Apr 18, 2019
1 parent 24cd70c commit 2e31512
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,7 @@ public TxSignResult signUsdtCollectTransaction(String chainID, String password,
throw new TokenException(Messages.INSUFFICIENT_FUNDS);
}

String usdtHex = "6a146f6d6e69" + String.format("%016x", 31) + String.format("%016x", amount);
tran.addOutput(Coin.valueOf(0L), new Script(Utils.HEX.decode(usdtHex)));

//add send to output
tran.addOutput(Coin.valueOf(needAmount), Address.fromBase58(network, getTo()));


//归零地址指向手续费提供方
Expand All @@ -382,6 +378,11 @@ public TxSignResult signUsdtCollectTransaction(String chainID, String password,
tran.addOutput(Coin.valueOf(changeAmount), changeAddress);
}

String usdtHex = "6a146f6d6e69" + String.format("%016x", 31) + String.format("%016x", amount);
tran.addOutput(Coin.valueOf(0L), new Script(Utils.HEX.decode(usdtHex)));

//add send to output
tran.addOutput(Coin.valueOf(needAmount), Address.fromBase58(network, getTo()));



Expand Down

0 comments on commit 2e31512

Please sign in to comment.