Hello!

I've a SmartContract that with function safeTransferFrom(). I want to move the tokens to the Smart Contract itself using address(this) as "to" argumen but I'm getting error:
"message": "execution reverted: ERC1155: transfer to non ERC1155Receiver implementer"
I'm not getting this error with another existing address.

How can I enable the Smart Contract to receive Tokens? I've imported IERC1155Receiver.sol (as the token to be moved is a ERC1155) but it's not working >.<

Dec 7, 2021, 9:39 AM
Oh Okey! Thank you!!
Dec 7, 2021, 9:44 AM

© 2024 Draquery.com All rights reserved.