-
Notifications
You must be signed in to change notification settings - Fork 36
fix: add missing storage bases for erc7779 #47
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
base: main
Are you sure you want to change the base?
Conversation
src/MSAAdvanced.sol
Outdated
| _tryUninstallValidators(); | ||
| _tryUninstallExecutors(); | ||
| _tryUninstallHook(_getHook()); | ||
| // Review |
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.
should we uninstall pre validation hooks as well?
why try... used instead of regular uninstall methods?
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.
Regular uninstall could revert right?
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.
I noticed we're not posting any data for onUninstall
commented versions of some methods like _tryUninstallValidators had that
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.
hmm actually that's a good point. Let keep and use the versions that post data with tryUninstall
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.
would this need changes in the erc for onRedelegation method--can accept data?
interface IRedelegableDelegatedAccount {
/*
* @dev Function called before redelegation.
* This function should prepare the account for a delegation to a different implementation.
* This function could be triggered by the new wallet that wants to redelegate an already delegated EOA.
* It should uninitialize storages if needed and execute wallet-specific logic to prepare for redelegation.
* msg.sender should be the owner of the account.
*/
function onRedelegation() external returns (bool);
}
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.
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.
yeah that makes sense
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.
pushed please check.
highskore
left a comment
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.
looks good now, lets just make sure the linter is passing
|
@highskore
|
pushed. |
|
please give me until next week to finalise this PR. I spoke to David and we agreed on not changing the onRedelegation interface now |
Rahul-cyber26
left a comment
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.
| if (isERC7702) { | ||
| _addStorageBase(MODULEMANAGER_STORAGE_LOCATION); | ||
| _addStorageBase(HOOKMANAGER_STORAGE_LOCATION); | ||
| _addStorageBase(PREVALIDATION_HOOKMANAGER_STORAGE_LOCATION); |
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.
_addStorageBase(PREVALIDATION_HOOKMANAGER_STORAGE_LOCATION);
| @@ -1,5 +1,5 @@ | |||
| [profile.default] | |||
| evm_version = "cancun" | |||
| evm_version = "prague" | |||
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.
evm_version = "prague"


added PREVALIDATION_HOOKMANAGER_STORAGE_LOCATION
commented for questions in PR file diff view