Skip to content

Commit daeb1cb

Browse files
committed
Fixed bug in create transaction from payload
1 parent fb47164 commit daeb1cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/infrastructure/transaction/CreateTransactionFromPayload.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ const CreateTransaction = (type: number, transactionData: string, networkType: N
376376
}),
377377
networkType,
378378
consignatureArray ? consignatureArray.map((cosignature) => new AggregateTransactionCosignature(
379-
cosignature.substring(0, 64),
379+
cosignature.substring(64, 192),
380380
PublicAccount.createFromPublicKey(cosignature.substring(0, 64), networkType),
381381
)) : [],
382382
);
@@ -400,7 +400,7 @@ const CreateTransaction = (type: number, transactionData: string, networkType: N
400400
}),
401401
networkType,
402402
bondedConsignatureArray ? bondedConsignatureArray.map((cosignature) => new AggregateTransactionCosignature(
403-
cosignature.substring(0, 64),
403+
cosignature.substring(64, 192),
404404
PublicAccount.createFromPublicKey(cosignature.substring(0, 64), networkType),
405405
)) : [],
406406
);

0 commit comments

Comments
 (0)