fix: add missing storage bases for erc7779#47
fix: add missing storage bases for erc7779#47livingrockrises wants to merge 7 commits intoerc7579:mainfrom
Conversation
src/MSAAdvanced.sol
Outdated
| _tryUninstallValidators(); | ||
| _tryUninstallExecutors(); | ||
| _tryUninstallHook(_getHook()); | ||
| // Review |
There was a problem hiding this comment.
should we uninstall pre validation hooks as well?
why try... used instead of regular uninstall methods?
There was a problem hiding this comment.
Regular uninstall could revert right?
There was a problem hiding this comment.
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.
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.
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.
There was a problem hiding this comment.
pushed please check.
highskore
left a comment
There was a problem hiding this comment.
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 |
| if (isERC7702) { | ||
| _addStorageBase(MODULEMANAGER_STORAGE_LOCATION); | ||
| _addStorageBase(HOOKMANAGER_STORAGE_LOCATION); | ||
| _addStorageBase(PREVALIDATION_HOOKMANAGER_STORAGE_LOCATION); |
There was a problem hiding this comment.
_addStorageBase(PREVALIDATION_HOOKMANAGER_STORAGE_LOCATION);
| @@ -1,5 +1,5 @@ | |||
| [profile.default] | |||
| evm_version = "cancun" | |||
| evm_version = "prague" | |||


added PREVALIDATION_HOOKMANAGER_STORAGE_LOCATION
commented for questions in PR file diff view