Closed mudgen closed 6 years ago
Nick! WOW 😄
Thank you so much for all the work you put into this commit! I can't wait to try it out myself and dig in deeper today.
We may discuss some of the finer points but this is a tremendous leap forward so thank you for bringing new energy here!
Great! Let me know how it goes and I am interested in discussing things. More to come!
This is actually the first time I have done a pull request so excuse me if I do something wrong. And let me know how to do it better next time.
I made some interesting changes to ERC998PossessERC721.sol. Let me describe why I made the changes.
safeTransferFrom
is moved after bookkeeping to prevent re-entry attacks. If this was executed before bookkeeping then it would be possible to mess up the bookeeping by re-entrying the contract whensafeTransferFrom
is called.transferChild(address _to, uint256 _tokenId, address _childContract, uint256 _childTokenId, bytes data)
function can be used to transfer child tokens to user accounts and to transfer tokens to consumable tokens.I would love some feedback on all these changes and additions.