-
Notifications
You must be signed in to change notification settings - Fork 32
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 migration to upgrade contracts #54
Conversation
Slither reportTHIS CHECKLIST IS NOT COMPLETE. Use |
Changes to gas cost
🧾 Summary (10% most significant diffs)
Full diff report 👇
|
81c1b99
to
d858d95
Compare
KintoAppRegistryV3 _registryImpl = KintoAppRegistryV3(upgradeRegistry()); | ||
KintoWalletV4 _walletImpl = KintoWalletV4(payable(upgradeWallet())); | ||
KintoWalletFactoryV7 _factoryImpl = KintoWalletFactoryV7(upgradeFactory()); | ||
KYCViewerV2 _kycViewerImpl = KYCViewerV2(upgradeKYCViewer()); |
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.
need to redeploy kyc viewer completely. The previous one is not usable because we didnt call disableInitializers
console.log(string.concat("KintoAppRegistryV3-impl: ", vm.toString(address(_registryImpl)))); | ||
console.log(string.concat("KintoWalletV4-impl: ", vm.toString(address(_walletImpl)))); | ||
console.log(string.concat("KintoWalletFactoryV7-impl: ", vm.toString(address(_factoryImpl)))); | ||
console.log(string.concat("KYCViewerV2-impl: ", vm.toString(address(_kycViewerImpl)))); |
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.
add 'KYCViewer' and rename that to KYCViewerV1-impl
bytes memory bytecode = | ||
abi.encodePacked(type(KintoAppRegistryV3).creationCode, abi.encode(address(_walletFactory))); | ||
|
||
vm.broadcast(deployerPrivateKey); |
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.
transferOwnership to ledger before upgrade?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## fix-paymaster-and-wallet #54 +/- ##
============================================================
+ Coverage 82.02% 82.24% +0.22%
============================================================
Files 8 8
Lines 445 445
Branches 123 123
============================================================
+ Hits 365 366 +1
Misses 35 35
+ Partials 45 44 -1
|
eff9f4e
to
4393e6a
Compare
upgrades: