5

关于ERC721Token授权的问题

 2 years ago
source link: https://learnblockchain.cn/question/2429
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
关于ERC721Token授权的问题 | 登链社区 | 技术问答

关于ERC721Token授权的问题

ERC721的Token不能在一个合约方法中授权并转移吗?

IERC721(tokenadr).approve(address(this), _nftid);  
IERC721(tokenadr).safeTransferFrom(msg.sender, address(this), _nftid);

上面这个方法会报错:ERC721: approve caller is not owner nor approved for all


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK