Skip to content

Commit

Permalink
fix post-migration errors
Browse files Browse the repository at this point in the history
  • Loading branch information
michavie committed Jun 11, 2024
1 parent 78c294d commit 6838b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ export const toDemoTransaction = (action: ProposalAction, account: AccountType)

interaction = isFungible
? interaction.withSingleESDTTransfer(tokenTransfer)
: interaction.withSingleESDTNFTTransfer(tokenTransfer, new Address(account.address))
: interaction.withSingleESDTNFTTransfer(tokenTransfer)
} else if (action.payments.length > 1) {
const tokenTransfer = action.payments.map((p) =>
TokenTransfer.metaEsdtFromBigInteger(p.tokenId, p.tokenNonce, toActionArgsBigNumber(p.amount), p.tokenDecimals!)
)
interaction = interaction.withMultiESDTNFTTransfer(tokenTransfer, new Address(account.address))
interaction = interaction.withMultiESDTNFTTransfer(tokenTransfer)
}

return interaction.buildTransaction()
Expand Down

0 comments on commit 6838b40

Please sign in to comment.