Skip to content

Commit

Permalink
fix: multi validator account creation (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
MexicanAce authored Dec 10, 2024
1 parent 2eeb05a commit 748de31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validators/SessionKeyValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract SessionKeyValidator is IValidationHook, IModuleValidator {

function init(bytes calldata data) external {
// to prevent duplicate inits, since this can be hook plus a validator
if (!_isHookAndModuleInitialized(msg.sender) && data.length != 0) {
if (_isHookAndModuleInitialized(msg.sender) && data.length != 0) {
require(_addValidationKey(data), "init failed");
}
}
Expand Down

0 comments on commit 748de31

Please sign in to comment.