Skip to content

fix: prepopulated scopes in simulateviaentrypoint#22464

Merged
Thunkar merged 8 commits into
merge-train/fairiesfrom
gj/pre_expanded_scopes
Apr 10, 2026
Merged

fix: prepopulated scopes in simulateviaentrypoint#22464
Thunkar merged 8 commits into
merge-train/fairiesfrom
gj/pre_expanded_scopes

Conversation

@Thunkar

@Thunkar Thunkar commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

This is a bug, was causing problems since the method receives scopes pre-populated.

Fixing it surfaced another issue @spalladino was running into, which is that our account contract stubs do not provide a constructor. This was causing the cryptic error described here: #22421

This PR creates a stub account contract per account type (since we need the selector to match, and Schnorr/ECDSA have very different constructors) + adds a meaningful error when the proxied contract store doesn't find a method in the stub

@Thunkar Thunkar requested review from benesjan and mverzilli April 10, 2026 11:45
@Thunkar Thunkar self-assigned this Apr 10, 2026
@Thunkar Thunkar changed the title fix fix: prepopulated scopes in simulateviaentrypoint Apr 10, 2026
@Thunkar Thunkar added ci-full Run all master checks. labels Apr 10, 2026
@Thunkar Thunkar merged commit c4ed9a6 into merge-train/fairies Apr 10, 2026
12 checks passed
@Thunkar Thunkar deleted the gj/pre_expanded_scopes branch April 10, 2026 16:15
@AztecBot

Copy link
Copy Markdown
Collaborator

❌ Failed to cherry-pick to v4-next due to conflicts. (🤖) View backport run.

AztecBot pushed a commit that referenced this pull request Apr 10, 2026
AztecBot pushed a commit that referenced this pull request Apr 10, 2026
This is a bug, was causing problems since the method receives scopes
pre-populated.

Fixing it surfaced another issue @spalladino was running into, which is
that our account contract stubs do not provide a constructor. This was
causing the cryptic error described here:
#22421

This PR creates a stub account contract per account type (since we need
the selector to match, and Schnorr/ECDSA have very different
constructors) + adds a meaningful error when the proxied contract store
doesn't find a method in the stub
Thunkar added a commit that referenced this pull request Apr 10, 2026
…oint) to v4-next (#22470)

## Summary
Backport of #22464
to v4-next.

Cherry-pick applied cleanly (no conflicts) thanks to a previous backport
that unified the branches.

The original PR fixes a bug where scopes were being pre-populated
incorrectly in `simulateViaEntrypoint`, and also adds per-account-type
stub contracts (splitting `SimulatedAccount` into
`SimulatedSchnorrAccount` and `SimulatedEcdsaAccount`).
Thunkar added a commit that referenced this pull request Apr 10, 2026
BEGIN_COMMIT_OVERRIDE
cherry-pick: fix: passing in user call info from wallet (#21937)
fix: passing in user call info from wallet (backport #21937) (#22459)
fix: prepopulated scopes in simulateviaentrypoint (#22464)
chore: backport #22464 (fix: prepopulated scopes in
simulateviaentrypoint) to v4-next (#22470)
docs: add macOS prerequisites and improve Node.js version guidance
(#22408)
END_COMMIT_OVERRIDE
github-merge-queue Bot pushed a commit that referenced this pull request Apr 10, 2026
BEGIN_COMMIT_OVERRIDE
fix: prepopulated scopes in simulateviaentrypoint (#22464)
END_COMMIT_OVERRIDE
critesjosh pushed a commit that referenced this pull request Apr 14, 2026
This is a bug, was causing problems since the method receives scopes
pre-populated.

Fixing it surfaced another issue @spalladino was running into, which is
that our account contract stubs do not provide a constructor. This was
causing the cryptic error described here:
#22421

This PR creates a stub account contract per account type (since we need
the selector to match, and Schnorr/ECDSA have very different
constructors) + adds a meaningful error when the proxied contract store
doesn't find a method in the stub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v4-next ci-full Run all master checks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants