-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unmocking guardian #824
Unmocking guardian #824
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
class_hash: Felt, | ||
provider: P, | ||
owner: Signer, | ||
guardian: Option<Signer>, |
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.
im not sure if we want this here. since the sdk would never be it's own guardian. the guardian signer would come from the cartridge backend
b4f4815
to
44445de
Compare
@@ -454,10 +489,20 @@ mod CartridgeAccount { | |||
fn assert_valid_span_signature( | |||
self: @ContractState, hash: felt252, signer_signatures: Array<SignerSignature> | |||
) { | |||
assert(signer_signatures.len() <= 2, 'invalid-signature-length'); | |||
assert(signer_signatures.len() >= 1, 'empty-signatures'); |
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.
assert(signer_signatures.len() >= 1, 'empty-signatures'); | |
assert(signer_signatures.len() <= 1, 'empty-signatures'); |
'invalid-guardian-sig' | ||
); | ||
}, | ||
Option::None => { assert(signer_signatures.len() == 1, 'unexpected-guardian-sig'); } |
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 think we can just pass here
44445de
to
262f972
Compare
262f972
to
5c60dc4
Compare
5fcafa0
to
2423b0f
Compare
No description provided.