Learn how to handle NFTs in TAC proxy contracts with cross-chain bridging
IERC721Receiver
and implement the
required onERC721Received
function to correctly receive ERC-721 tokens.IERC721Receiver
and implement the required onERC721Received
function to correctly receive ERC‑721 tokens.
TacProxyV1
and IERC721Receiver
_getCrossChainLayerAddress()
to get the correct approval targetNFTAmount
struct contains:
evmAddress
- The NFT contract addresstokenId
- The specific token IDamount
- Ignored for ERC721 (always 0)processNFT
, handleNFT
, etc.) as long as it follows the function <name>(bytes calldata, bytes calldata) external
pattern.
IERC721Receiver
or NFT
transfers will fail. Always test NFT functionality thoroughly before deploying
to mainnet.