Skip to content

Commit 868b071

Browse files
committed
Fix toEncodeObject() of AssetMintTransaction
1 parent d59d96f commit 868b071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/transaction/AssetMintTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class AssetMintTransaction {
168168
metadata,
169169
lockScriptHash.toEncodeObject(),
170170
parameters.map(parameter => Buffer.from(parameter)),
171-
amount ? [amount] : [],
171+
amount !== null ? [amount] : [],
172172
registrar ? [registrar.getAccountId().toEncodeObject()] : [],
173173
nonce
174174
];

0 commit comments

Comments
 (0)