-
Notifications
You must be signed in to change notification settings - Fork 0
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(erc777): <- add custom function call when minting #1
Conversation
d333412
to
a8f41f7
Compare
59e3e37
to
37ac0d0
Compare
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.
Couple of minor changes, otherwise LGTM.
37a1354
to
9b4e719
Compare
9b4e719
to
b577026
Compare
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.
Possible changes requested - feel free to argue against if you have strong preferences.
efa78c0
to
3c6f1ca
Compare
I just added a test where the recipient contract does not implement the IPReceiver interface. |
3c6f1ca
to
bdb280e
Compare
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.
Final tweaks
bdb280e
to
da41228
Compare
Contrary to try/catch, the low-level call to a non-contract address does not revert, thus allowing to write user data in the transaction.
da41228
to
118d854
Compare
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.
kk LGTM!
Update: Decision has been made to use |
In order, I added unit tests for return bombing in 54549d2, and verified they fail. |
33b0f26
to
c2ba176
Compare
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.
Just the comments below need tweaking.
c2ba176
to
e3ce226
Compare
b372ee7
to
64b2929
Compare
5d378a8
to
65b0d8c
Compare
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.
LGTM!
Approved in pvt with @themetaseq & @wernervoncroy. |
Since ERC777 hooks have been removed, it's impossible to have a contract called when minting the pToken.
This PR adds a
IPReceiver
interface which exposes areceiveUserData()
function that is called when minting the pToken.