-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
e9e7a71
to
2510710
Compare
…ter validation in session key validator
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 assume a lot of this code has been ripped from zksync - it overall looks good to me, but i dont have time to do an in-depth review
* @param smartAccount The smart account to check | ||
* @return true if validator is registered for the account, false otherwise | ||
*/ | ||
function isInited(address smartAccount) external view 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.
should this be isInitialized
?
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.
Clave modules use a custom IInitable
that uses this method
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.17;
interface IInitable {
event Inited(address indexed account);
event Disabled(address indexed account);
function init(bytes calldata initData) external;
function disable() external;
function isInited(address account) external view returns (bool);
}
@@ -89,6 +89,9 @@ const config: HardhatUserConfig = { | |||
}, | |||
solidity: { | |||
version: '0.8.26', | |||
settings: { | |||
evmVersion: 'cancun', |
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 most of our contracts use ^0.8.24
, do we want to bump those versions to 0.8.26
to match our compiler version?
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.
Might clean this up in a separate PR. I am going to lock zksolc to 1.5.6 right now to prevent any sort of verification issues.
No description provided.