Open wayne-law opened 3 weeks ago
face the same issue with the same dapp, quite amazing 🤔 https://explorer.aptoslabs.com/txn/983156702/userTxnOverview?network=mainnet
Here's another failed tx: https://explorer.aptoslabs.com/txn/0x154cea3fe33ca021694fb1b8c0ae6ef80ab3e2df761a7041124fa48fbd239dc2/payload?network=mainnet
the raw payload is
{
"type": "entry_function_payload",
"function": "0x9770fa9c725cbd97eb50b2be5f7416efdfd1f1554beb0750d4dae4c64e860da3::controller::deposit",
"type_arguments": [
"0x1::aptos_coin::AptosCoin"
],
"arguments": [
"0x4d61696e204163636f756e74",
"10000000",
false
]
}
after signed by trust core, argument 0 change to "0x00000000000000000000000000000000000000004d61696e204163636f756e74".
Here's the success one signed by martian wallet extension: https://explorer.aptoslabs.com/txn/0x894c2e80803996523a633bbe1383e737a10fdef050f07fa201b43b9d73c824de/payload?network=mainnet
Describe the bug I'm trying to use a payloadJson to do an aptos transaction blind signing, but I found that the trust core will change the arguments's value in the encoded of output, it will cause the transaction go to fail.
here is the failed tx: https://aptoscan.com/transaction/983120591#payload
To Reproduce
use this payload json to do an aptos transaction blind signing
here's an exmaple to do an aptos transaction blind signing: https://github.com/trustwallet/wallet-core/blob/master/android/app/src/androidTest/java/com/trustwallet/core/app/blockchains/aptos/TestAptosSigner.kt
then use the encoded of output to broadcast
go to aptoscan to check the transaction's payload, the arguments 0 changes to "0x002d310100000000"
Expected behavior Don't change the value of argument in the transaction payload's arguments when do the signing