We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8e083f + 977310b commit b503f20Copy full SHA for b503f20
modules/sdk-coin-apt/src/lib/transaction/transferTransaction.ts
@@ -35,7 +35,11 @@ export class TransferTransaction extends Transaction {
35
this._assetId = entryFunction.type_args[0].toString();
36
this._recipient.address = entryFunction.args[0].toString();
37
const amountBuffer = Buffer.from(entryFunction.args[1].bcsToBytes());
38
- this._recipient.amount = amountBuffer.readBigUint64LE().toString();
+
39
+ const low = BigInt(amountBuffer.readUint32LE());
40
+ const high = BigInt(amountBuffer.readUint32LE(4));
41
+ const amount = (high << BigInt(32)) + low;
42
+ this._recipient.amount = amount.toString();
43
}
44
45
protected async buildRawTransaction(): Promise<void> {
0 commit comments