You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user can be a smart contract address which correctly implements the onERC721Received method, but it will not be called and tokens may be subsequently trapped.
solution : use _safeMint instead of _mint
The text was updated successfully, but these errors were encountered:
Impact: smart contracts interacting as users may not receive NFT
Description
in the deposit function _mint is used instead of _safeMint
user can be a smart contract address which correctly implements the
onERC721Received
method, but it will not be called and tokens may be subsequently trapped.solution : use _safeMint instead of _mint
The text was updated successfully, but these errors were encountered: