Skip to content
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

Closed
wants to merge 12 commits into from
Closed

Unmocking guardian #824

wants to merge 12 commits into from

Conversation

piniom
Copy link
Collaborator

@piniom piniom commented Oct 3, 2024

No description provided.

Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Oct 16, 2024 4:47pm
ui ✅ Ready (Inspect) Visit Preview Oct 16, 2024 4:47pm
ui-next ✅ Ready (Inspect) Visit Preview Oct 16, 2024 4:47pm

class_hash: Felt,
provider: P,
owner: Signer,
guardian: Option<Signer>,
Copy link
Contributor

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

@@ -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');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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'); }
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants