Skip to content

Commit 7ccbc07

Browse files
committed
demo: tx value and fee as number or bigint, as appropriate for legacy or albatross
1 parent 850d782 commit 7ccbc07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/demo/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,8 @@ window.addEventListener('load', () => {
921921
senderType,
922922
recipient,
923923
recipientType,
924-
value: BigInt(amount),
925-
fee: BigInt(fee),
924+
value: tx.value as any, // can be number or bigint
925+
fee: tx.fee as any, // can be number or bigint
926926
validityStartHeight,
927927
flags,
928928
network,

0 commit comments

Comments
 (0)