diff --git a/src/contracts/NFT/util.ts b/src/contracts/NFT/util.ts index 1a43d3eb..93320027 100644 --- a/src/contracts/NFT/util.ts +++ b/src/contracts/NFT/util.ts @@ -566,7 +566,16 @@ export async function transferNFT( freight?: number ): Promise { try { - return await MultiAssetTokenHelper.transfer(server, address, signer, keystore, fee, source, transfers, gas, freight); + const transferPairs = [ + { + source, + txs: transfers.map((t) => { + return { destination: t.address, token_id: t.tokenid, amount: t.amount }; + }), + }, + ]; + + return await MultiAssetTokenHelper.transfer(server, address, signer, keystore, fee, transferPairs, gas, freight); } catch (err) { throw new TransferNFTError('components.messageBar.messages.nft_send_transaction_failed', transfers); } diff --git a/src/contracts/Token2Contract/thunks.ts b/src/contracts/Token2Contract/thunks.ts index 3378403d..5daa1310 100644 --- a/src/contracts/Token2Contract/thunks.ts +++ b/src/contracts/Token2Contract/thunks.ts @@ -40,8 +40,7 @@ export function transferThunk(destination: string, amount: number, fee: number, isLedger ? signer : await cloneDecryptedSigner(signer, password), keyStore, fee, - selectedParentHash, - [{ address: destination, tokenid: token.tokenIndex, amount }], + [{ source: selectedParentHash, txs: [{ destination, token_id: token.tokenIndex, amount }] }], 0, 0 ).catch((err) => {