我正在使用Algorand JS SDK。
在这里,10个对应于我需要提取的金额,在合同中,我将其解读为Btoi(Txn.application_args1)。
但是我得到了错误transaction XBDYB2GZCDKTDWHR2UU4BEPHACSTNBW5DDAROBL3RW3QY6PTWMHA: logic eval error: underflow on subtracting 12592 from sender amount 5000. Details: pc=119, opcodes=txna Assets 0 itxn_field XferAsset itxn_submit
我怎么能传递一个整数?
发布于 2022-08-11 14:35:16
您需要对uint 64进行编码。
试试这个:appArgs.push(algosdk.encodeUint64(10))
https://stackoverflow.com/questions/73322484
复制相似问题