-
Notifications
You must be signed in to change notification settings - Fork 8
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(ptoken): <- remove all ERC777 hooks from that #67
Conversation
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!
btw i would add one test to test the upgrade just to be sure. You could:
- create a test contract called
OldErc777
(or something like this) that still uses the realERC777Upgradable
implementation (import "@openzeppelin/contracts-upgradeable/token/ERC777/ERC777Upgradeable.sol"
) - deploy the pToken contract using
OldErc777
- do something just to write some value in the contract state
- upgrade the pToken contract using the the new implementation (
import "./ERC777Upgradeable.sol"
)
97c9428
to
45dd23d
Compare
45dd23d
to
8d53c61
Compare
I've done one better because we need a more robust test for the upgrade compatibility since it's so critical. So if you review the latest additions you'll see that new test. Basically we use a child process to clone the whole repo to temp dir, checkout master there, flatten the Having this test here (and runnable in the CI which I've also added) gives me much more confidence going forward since we're likely to be editing this contract more in future. |
6158620
to
b72cdc8
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!
...per title.
NOTE: Hook calls have been commented out in the contract in question, though the hook logic remains.
NOTE: Test w/r/t the
tokensReceivedHook
have beenskip
ped for now.