sdk/js: fix payload ID
This commit is contained in:
parent
05f318050e
commit
26069907b2
|
@ -74,7 +74,7 @@ export class MockTokenBridge extends MockEmitter {
|
||||||
fromAddress?: Buffer
|
fromAddress?: Buffer
|
||||||
) {
|
) {
|
||||||
const serialized = Buffer.alloc(133);
|
const serialized = Buffer.alloc(133);
|
||||||
serialized.writeUInt8(1, 0);
|
serialized.writeUInt8(withPayload ? 3 : 1, 0);
|
||||||
const amountBytes = new BN(amount.toString()).toBuffer();
|
const amountBytes = new BN(amount.toString()).toBuffer();
|
||||||
serialized.write(
|
serialized.write(
|
||||||
amountBytes.toString("hex"),
|
amountBytes.toString("hex"),
|
||||||
|
|
Loading…
Reference in New Issue