Build Calldata
const sellCalldata = await niftyConnectExchangeInst.buildCallData(
ERC721TransferSelector, // uint selector,
nftOwner, // address from,
"0x0000000000000000000000000000000000000000", // address to,
TestERC721.address,// address nftAddress,
tokenId, // uint256 tokenId,
ERC721_AMOUNT,// uint256 amount,
"0x0000000000000000000000000000000000000000000000000000000000000000", // bytes32 merkleRoot
[],// bytes32[] memory merkleProof
);
const buyCalldata = await niftyConnectExchangeInst.buildCallData(
ERC721TransferSelector, // uint selector,
"0x0000000000000000000000000000000000000000", // address from,
buyer, // address to,
TestERC721.address,// address nftAddress,
tokenId, // uint256 tokenId,
ERC721_AMOUNT,// uint256 amount,
"0x0000000000000000000000000000000000000000000000000000000000000000", // bytes32 merkleRoot
[],// bytes32[] memory merkleProof
);name
type
description
Last updated