Skip to content

refactor: CallInterface cleanup#18413

Merged
benesjan merged 1 commit intonextfrom
11-14-refactor_dropping_callinterface_trait
Nov 19, 2025
Merged

refactor: CallInterface cleanup#18413
benesjan merged 1 commit intonextfrom
11-14-refactor_dropping_callinterface_trait

Conversation

@benesjan
Copy link
Contributor

@benesjan benesjan commented Nov 14, 2025

The complexity of the changes in this PR has been low so I decided to do a few things in one go:

  1. Drop the CallInterface trait as it was not needed,
  2. drop the call interface name and just use call,
  3. dropped is_static from the static as its presence was bizarre (why does PrivateCall have is_static when there is another PrivateStaticCall struct?)

@benesjan benesjan marked this pull request as ready for review November 14, 2025 16:25
@benesjan benesjan force-pushed the 11-14-refactor_dropping_callinterface_trait branch from 75b4577 to 8ba41d6 Compare November 14, 2025 18:58
@benesjan benesjan force-pushed the 11-13-feat_panicking_on_incorrectly_performed_calls branch from d16b4e8 to 8ac9d75 Compare November 14, 2025 18:58
@benesjan benesjan changed the title refactor: dropping CallInterface trait refactor: CallInterface cleanup Nov 14, 2025
Comment on lines +15 to +19
pub target_contract: AztecAddress,
pub selector: FunctionSelector,
pub name: str<M>,
args_hash: Field,
args: [Field],
pub args: [Field],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead of having the getters here I just expose these as the getters were too boilerplate-y.

@AztecBot
Copy link
Collaborator

AztecBot commented Nov 14, 2025

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033[38;2;188;109;208mFLAKED\033[0m (\033[38;2;250;217;121m8;;http://ci.aztec-labs.com/709d35e87930d295�709d35e87930d2958;;�\033[0m): yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_multi_proof.test.ts (172s) (code: 1) group:e2e-p2p-epoch-flakes (\033[38;2;188;109;208mJan Beneš\033[0m: refactor: `CallInterface` cleanup (#18413))

@benesjan benesjan requested review from Thunkar and nventuro November 14, 2025 19:59
Copy link
Contributor

@Thunkar Thunkar left a comment

Choose a reason for hiding this comment

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

Lovely, thank you!

@benesjan benesjan force-pushed the 11-14-refactor_dropping_callinterface_trait branch from 8ba41d6 to 2011739 Compare November 18, 2025 18:01
@benesjan benesjan force-pushed the 11-13-feat_panicking_on_incorrectly_performed_calls branch 2 times, most recently from 778be66 to efcd7c4 Compare November 18, 2025 19:31
@benesjan benesjan force-pushed the 11-14-refactor_dropping_callinterface_trait branch from 2011739 to 14e7d4d Compare November 18, 2025 19:31
@AztecBot AztecBot force-pushed the 11-13-feat_panicking_on_incorrectly_performed_calls branch from efcd7c4 to 99ae17c Compare November 19, 2025 12:31
Base automatically changed from 11-13-feat_panicking_on_incorrectly_performed_calls to next November 19, 2025 13:06
@benesjan benesjan force-pushed the 11-14-refactor_dropping_callinterface_trait branch from 14e7d4d to c8246fc Compare November 19, 2025 13:20
@benesjan benesjan enabled auto-merge November 19, 2025 13:22
@AztecBot AztecBot force-pushed the 11-14-refactor_dropping_callinterface_trait branch from c8246fc to 24e5513 Compare November 19, 2025 13:46
@benesjan benesjan added this pull request to the merge queue Nov 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 19, 2025
@benesjan benesjan added this pull request to the merge queue Nov 19, 2025
@benesjan benesjan removed this pull request from the merge queue due to a manual request Nov 19, 2025
@benesjan benesjan force-pushed the 11-14-refactor_dropping_callinterface_trait branch from 24e5513 to 05792c2 Compare November 19, 2025 14:42
@benesjan benesjan enabled auto-merge November 19, 2025 15:25
The complexity of the changes in this PR has been low so I decided to do a few things in one go:
1. Drop the `CallInterface` trait as it was not needed,
2. drop the call interface name and just use call,
3. dropped `is_static` from the static as its presence was bizarre (why does `PrivateCall` have `is_static` when there is another `PrivateStaticCall` struct?)
@AztecBot AztecBot force-pushed the 11-14-refactor_dropping_callinterface_trait branch from 05792c2 to 47fbde1 Compare November 19, 2025 15:29
@benesjan benesjan added this pull request to the merge queue Nov 19, 2025
Merged via the queue into next with commit a3a2d86 Nov 19, 2025
16 checks passed
@benesjan benesjan deleted the 11-14-refactor_dropping_callinterface_trait branch November 19, 2025 16:03
ludamad pushed a commit that referenced this pull request Dec 16, 2025
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