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

Feature/eip 7702 #1262

Open
wants to merge 115 commits into
base: v2
Choose a base branch
from
Open

Feature/eip 7702 #1262

wants to merge 115 commits into from

Conversation

borislav-itskov
Copy link
Member

@borislav-itskov borislav-itskov commented Jan 29, 2025

Everything necessary to enable eip-7702

…which doesn't; a function to check whether the user has authrorized a network
@borislav-itskov borislav-itskov self-assigned this Feb 12, 2025
@borislav-itskov borislav-itskov added the enhancement New feature or request label Feb 12, 2025
@borislav-itskov borislav-itskov changed the title WIP: Feature/eip 7702 Feature/eip 7702 Feb 12, 2025
@borislav-itskov borislav-itskov marked this pull request as ready for review February 12, 2025 08:17
@@ -33,6 +33,7 @@
"bip44-constants": "^128.0.0",
"ethereumjs-util": "^7.1.3",
"react": "^18.1.0",
"secp256k1": "^5.0.1",
Copy link
Member

Choose a reason for hiding this comment

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

Since this package is used in ambire-common (src/libs/keystoreSigner/keystoreSigner.ts), shouldn't we put this package as a "dependency" here? And then - the extension should not have this package installed separately?

canSwitch(bundlerError: Error | null): boolean {
canSwitch(acc: Account, bundlerError: Error | null): boolean {
// no fallbacks for EOAs
if (!acc.creation) return false
Copy link
Member

Choose a reason for hiding this comment

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

Maybe isBasicAccount(acc, state)?

@superKalo
Copy link
Member

So far so good 👏

…de properties correct if 7702 eoa (no state override needed there); fix nonce in account state for 7702 eoas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants