Skip to content

Commit

Permalink
fix: error when trying to massmint
Browse files Browse the repository at this point in the history
  • Loading branch information
hassnian committed Aug 6, 2023
1 parent 907801f commit d0045a1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion composables/transaction/mintToken/transactionMintRmrk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,14 @@ export async function execMintRmrk({

const isSingle = args.length === 1
const cb = isSingle ? api.tx.system.remark : api.tx.utility.batchAll
const arg = isSingle ? args : [args]

const arg = isSingle
? args
: [
args
.filter((arg) => arg)
.map((arg) => asSystemRemark(api, arg as string)),
]

executeTransaction({
cb,
Expand Down

0 comments on commit d0045a1

Please sign in to comment.