Skip to content

test(contracts): remove unused simulator members - #282

Merged
lolaaimar merged 1 commit into
fix/attestation-unreachable-vault-checkfrom
chore/217-unused-sim-members
Nov 25, 2026
Merged

lolaaimar merged 1 commit into
fix/attestation-unreachable-vault-checkfrom
chore/217-unused-sim-members

Conversation

@nicolasLuduena

@nicolasLuduena nicolasLuduena commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #217. Stacked on #283 (stack: #291 → #292 → #293 → #294 → #285 → #283 → #282); it shares no files with them.

packages/contracts/test/helpers/sim.ts recorded each call's effects and signatures for two methods no test calls. This PR removes them:

-makeSimClass<PS extends { signatures: JubjubSchnorrSignature[] }, L>
+makeSimClass<PS, L>
-  newContract(privateState, registryKeys, seals)
+  newContract(registryKeys, seals)
   class
-    lastEffects, lastSigs
     create(privateState, registryKeys, …)    # still takes the private state for the constructor context
     call()
-      record lastEffects and lastSigs
-    effects()
-    lastSignatures()

PS only had to carry signatures so call() could record them, so the constraint goes too. The Effects and JubjubSchnorrSignature imports go with it, and so does the comment that pointed tests at the removed methods.

Evidence

  • Before: sim.ts was the only file that named lastEffects, lastSigs, effects() or lastSignatures().
    After: with them removed, npm run types passes, so no caller in main or the stack below used them. acceptance-cardano.test.ts calls only create, call, now and ledgerView, which keep their signatures.

On the full stack, all four mocks compile with npm run compact:no-zk. npm run check passes, and the full suite passes: 776 passed, 4 skipped (the opt-in live checks).

No verification skill in this repo.

Merge Danger

Door: two-way

Blast Radius: none

A test helper. Nothing published changes, so there is no changeset.

@nicolasLuduena
nicolasLuduena force-pushed the chore/217-unused-sim-members branch from f55b6c1 to a3ccbe7 Compare November 25, 2026 02:15
@nicolasLuduena
nicolasLuduena changed the base branch from main to fix/attestation-unreachable-vault-check November 25, 2026 02:15

@nicolasLuduena nicolasLuduena left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

lgtm

@lolaaimar lolaaimar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@lolaaimar
lolaaimar force-pushed the chore/217-unused-sim-members branch from a3ccbe7 to 24d20bf Compare November 25, 2026 19:49
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5f6e340c-07b2-49f1-b640-8e0aea7b59cb
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@lolaaimar
lolaaimar force-pushed the chore/217-unused-sim-members branch from 24d20bf to f32a24a Compare November 25, 2026 20:47
@lolaaimar
lolaaimar merged commit 84750ee into main Nov 25, 2026
3 checks passed
@lolaaimar
lolaaimar deleted the chore/217-unused-sim-members branch November 25, 2026 20:50
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.

contracts: remove unused members from the test simulator

2 participants