-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add withdrawTo functionality to support exits to other addresses #20
Conversation
require(_isContract(_tokenTemplate), "Token template is not contract"); | ||
} | ||
|
||
function withdraw(address childToken, uint256 id, uint256 amount, bytes memory data) public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes are these 4 functions, and the internal _withdraw
functions below. Had to reset the formatting here to be similar to all other contracts.
); | ||
|
||
// withdraw tokens | ||
childTokenContract.burn(tokenId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
childTokenContract uses msg.sender internally? Other tokens use user's address to burn them, why does this contract uses the tunnel itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using OpenZeppelin implementations of the ERC token contracts, in the case of ERC721
there is no such parameter, hence we don't have it either.
@QEDK can you please resolve the conflict? |
@jdkanani Done! 👌 |
Merging after a conversation with @imyourm8 💯 |
No description provided.