ABI
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "initializeBundle",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
CODE
const options = {
functionName: 'initializeBundle',
contractAddress: '0x19',
abi: AssetWrapperABI.abi,
params: {
to: nft.token_address
}
}
const bundle = await Moralis.executeFunction(options)
await bundle.wait(3);