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

feat: add new RPC starkNet_addAccount #474

Merged
merged 24 commits into from
Jan 14, 2025

Conversation

stanleyyconsensys
Copy link
Collaborator

@stanleyyconsensys stanleyyconsensys commented Jan 10, 2025

This PR is to add new RPC starkNet_addAccount

Changes:

  • Add new RPC starkNet_addAccount

  • A MaxAccountLimitExceededError will be thrown if more than 2 account created in the same network

  • Add permission and entry point for RPC starkNet_addAccount

  • Add the missing test for AccountStateManager

  • Remove addAccount and updateAccount from AccountStateManager, as no use case exist.

Requirements:

@stanleyyconsensys stanleyyconsensys requested a review from a team as a code owner January 10, 2025 06:49
@stanleyyconsensys stanleyyconsensys requested review from Akaryatrh and jonesho and removed request for a team January 10, 2025 06:49
@stanleyyconsensys stanleyyconsensys marked this pull request as draft January 10, 2025 07:29
@stanleyyconsensys stanleyyconsensys marked this pull request as ready for review January 10, 2025 08:47
@khanti42 khanti42 changed the base branch from feat/enable-multiple-accounts to refactor/adopt-account-discovery January 13, 2025 11:55
Copy link
Collaborator

@khanti42 khanti42 left a comment

Choose a reason for hiding this comment

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

nit changes and one question regarding the getNextIndex

Base automatically changed from refactor/adopt-account-discovery to feat/enable-multiple-accounts January 14, 2025 11:57
Copy link

Quality Gate Passed Quality Gate passed for 'consensys_starknet-snap-wallet-ui'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Copy link

Quality Gate Passed Quality Gate passed for 'consensys_starknet-snap-starknet-snap'

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
1.0% Coverage on New Code
0.9% Duplication on New Code

See analysis details on SonarQube Cloud

@stanleyyconsensys stanleyyconsensys merged commit 61ea119 into feat/enable-multiple-accounts Jan 14, 2025
14 checks passed
@stanleyyconsensys stanleyyconsensys deleted the feat/add-account-rpc branch January 14, 2025 12:10
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