sdk/js: fix payload ID

This commit is contained in:
A5 Pickle 2022-11-30 23:08:11 +00:00 committed by Evan Gray
parent 05f318050e
commit 26069907b2
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export class MockTokenBridge extends MockEmitter {
fromAddress?: Buffer
) {
const serialized = Buffer.alloc(133);
serialized.writeUInt8(1, 0);
serialized.writeUInt8(withPayload ? 3 : 1, 0);
const amountBytes = new BN(amount.toString()).toBuffer();
serialized.write(
amountBytes.toString("hex"),