Can't receive ERC1155 NFT token in smart contract

I 'm trying to send ERC1155 token to smart contract . I have set up IERC1155Receiver interface and implement onERC1155Received inside smart contract to get selector . But It gives the error.

Error: VM Exception while processing transaction: reverted with reason string 'ERC1155: transfer to non ERC1155Receiver implementer'

Is there any way to resolve this issue?

You can inherit from our ERC1155Holder contract for a simple way to be able to receive tokens.

Thanks frangio .It works well. Good support!

1 Like