-
Notifications
You must be signed in to change notification settings - Fork 38
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
fix: [spearbit-88] move SIG_VALIDATION_X to a global var #73
Conversation
There's also this code in return uint160(!validationSuccess ? 1 : 0) | (uint256(sessionKeyData.validUntil) << 160)
| (uint256(currentValidAfter) << (208)); |
sounds good! will make fixes after we merge @adam-alchemy's session key PR |
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.
lgtm, pending session key merge and suggested update above.
@@ -24,7 +24,9 @@ import { | |||
AssociatedLinkedListSet, AssociatedLinkedListSetLib | |||
} from "../../libraries/AssociatedLinkedListSetLib.sol"; | |||
import {CastLib} from "../../libraries/CastLib.sol"; | |||
import {SetValue, SENTINEL_VALUE} from "../../libraries/LinkedListSetUtils.sol"; | |||
import { | |||
SetValue, SENTINEL_VALUE, SIG_VALIDATION_PASSED, SIG_VALIDATION_FAILED |
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.
Unused import of SIG_VALIDATION_PASSED, else lgtm
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.
good catch! addressing this in: #113
Co-authored-by: Jay Paik <[email protected]>
Motivation
consolidate all usages of ERC4337 SIG_VALIDATION_PASSED, SIG_VALIDATION_FAILED into a global consts file
https://github.com/spearbit-audits/alchemy-nov-review/issues/88