Skip to content

refactor!: cleaning up our use of testWallet.getNotes(...)#17325

Merged
benesjan merged 1 commit intonextfrom
09-26-refactor_dropping_getnotes_from_testwallet
Sep 30, 2025
Merged

refactor!: cleaning up our use of testWallet.getNotes(...)#17325
benesjan merged 1 commit intonextfrom
09-26-refactor_dropping_getnotes_from_testwallet

Conversation

@benesjan
Copy link
Contributor

@benesjan benesjan commented Sep 26, 2025

In this PR I replace incorrect use of the testWallet.getNotes(...) debugging function by implementing corresponding utility functions and I drop the Aztec Cheatcodes class as it became unused.

Nuked the testing with Aztec.js section of docs as it became so stale to the point of being detrimental. Asked devrel and they prefer me rewriting it so I will do that in a followup PR.

Copy link
Contributor Author

benesjan commented Sep 26, 2025

@benesjan benesjan force-pushed the 09-26-refactor_dropping_getnotes_from_testwallet branch from 35e9ba1 to 5d120a8 Compare September 26, 2025 11:04
@benesjan benesjan force-pushed the 09-26-refactor_dropping_getnotes_from_testwallet branch from 8d133fd to 40d4375 Compare September 29, 2025 11:00
@benesjan benesjan force-pushed the 09-25-refactor_testwallet_api_cleanup_pt.2 branch from 86f95ca to 273de06 Compare September 29, 2025 11:00
@AztecBot AztecBot force-pushed the 09-25-refactor_testwallet_api_cleanup_pt.2 branch from 273de06 to 5b593d6 Compare September 29, 2025 11:45
Base automatically changed from 09-25-refactor_testwallet_api_cleanup_pt.2 to next September 29, 2025 12:33
@benesjan benesjan force-pushed the 09-26-refactor_dropping_getnotes_from_testwallet branch from 40d4375 to ca10623 Compare September 29, 2025 13:57
@benesjan benesjan changed the title refactor: dropping getNotes from TestWallet refactor: cleaning up our use of wallet.getNotes Sep 29, 2025
@benesjan benesjan changed the title refactor: cleaning up our use of wallet.getNotes refactor: cleaning up our use of testWallet.getNotes(...) Sep 29, 2025
@benesjan benesjan changed the title refactor: cleaning up our use of testWallet.getNotes(...) refactor!: cleaning up our use of testWallet.getNotes(...) Sep 29, 2025
@benesjan benesjan force-pushed the 09-26-refactor_dropping_getnotes_from_testwallet branch from bd5f237 to cef213a Compare September 29, 2025 14:05
@benesjan benesjan marked this pull request as ready for review September 29, 2025 14:06
return decodedEvents;
}

async resetNoteSyncData() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was unused so I dropped it. It's only used by the internal PXE synchronizer so it shouldn't be exposed.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we may want to hold on to this until #15753 is fixed (or more generally until tagging indeces become robust), since this is the only mechanism for wallets to fix PXE if the indeces get broken. @Thunkar this is what they're relying on no?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think anyone is using it and invoking the method won't get you out of #15753, because the problem is that your index "got outside" of the window. Resetting them won't unstuck you (nor cleaning PXEs db entirely)

Copy link
Contributor Author

@benesjan benesjan Sep 30, 2025

Choose a reason for hiding this comment

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

In that case will not revert this change and all of Nico's feedback on this PR is now addressed (was careful with the commit history so seeing changes since last review should work).

Copy link
Contributor

@nventuro nventuro left a comment

Choose a reason for hiding this comment

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

Lovely, thanks a lot for the careful considerations

return decodedEvents;
}

async resetNoteSyncData() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we may want to hold on to this until #15753 is fixed (or more generally until tagging indeces become robust), since this is the only mechanism for wallets to fix PXE if the indeces get broken. @Thunkar this is what they're relying on no?

@benesjan benesjan enabled auto-merge September 30, 2025 12:55
@AztecBot AztecBot force-pushed the 09-26-refactor_dropping_getnotes_from_testwallet branch from 4b1c2cf to c18f5d1 Compare September 30, 2025 12:57
@AztecBot AztecBot force-pushed the 09-26-refactor_dropping_getnotes_from_testwallet branch from c18f5d1 to b4fea5d Compare September 30, 2025 13:00
@benesjan benesjan added this pull request to the merge queue Sep 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 30, 2025
@benesjan benesjan force-pushed the 09-26-refactor_dropping_getnotes_from_testwallet branch from b4fea5d to a185f09 Compare September 30, 2025 13:42
@benesjan benesjan enabled auto-merge September 30, 2025 13:47
In this PR I replace incorrect use of the `testWallet.getNotes(...)` debugging function by implementing corresponding utility functions and I drop the Aztec Cheatcodes class as it became unused.

Nuked the testing with Aztec.js section of docs as it became so stale to the point of being detrimental. Asked devrel and they prefer me rewriting it so I will do that in a followup PR.
@AztecBot AztecBot force-pushed the 09-26-refactor_dropping_getnotes_from_testwallet branch from 5467aab to 079f99d Compare September 30, 2025 14:08
@benesjan benesjan added this pull request to the merge queue Sep 30, 2025
auto-merge was automatically disabled September 30, 2025 14:48

Pull Request is not mergeable

Merged via the queue into next with commit 39eb4be Sep 30, 2025
15 checks passed
@benesjan benesjan deleted the 09-26-refactor_dropping_getnotes_from_testwallet branch September 30, 2025 14: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.

4 participants