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

Update account interface #51

Merged
merged 1 commit into from
Nov 9, 2021
Merged

Update account interface #51

merged 1 commit into from
Nov 9, 2021

Conversation

martriay
Copy link
Contributor

@martriay martriay commented Nov 9, 2021

Update Account.cairo, IAccount.cairo and Signer.py according to Standard account interface discussion.

Copy link
Collaborator

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

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

Looks great! I just left a question

Comment on lines 195 to 199
calldata_len: felt,
calldata: felt*,
nonce: felt
) -> (response : felt):
alloc_locals
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we update any of the logic with the local current_nonce?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's not necessary since we're only allowing for sequential nonces, while the interface supports custom nonce mechanisms. I think just ignoring the parameter results in less anf more efficient code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

anf

image

@martriay martriay merged commit dc7963b into main Nov 9, 2021
@martriay martriay deleted the update-interface branch November 9, 2021 17:41
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.

3 participants