Skip to content

refactor(stdlib): remove deprecated RevertCode/TxExecutionResult aliases#23249

Merged
spalladino merged 1 commit into
merge-train/spartanfrom
spl/remove-deprecated-revert-codes
May 13, 2026
Merged

refactor(stdlib): remove deprecated RevertCode/TxExecutionResult aliases#23249
spalladino merged 1 commit into
merge-train/spartanfrom
spl/remove-deprecated-revert-codes

Conversation

@spalladino
Copy link
Copy Markdown
Contributor

Motivation

The RevertCode and TxExecutionResult types each carried three deprecated aliases (APP_LOGIC_REVERTED, TEARDOWN_REVERTED, BOTH_REVERTED) that all collapse to the same REVERTED value. Keeping them around adds noise, requires no-duplicate-enum-values eslint suppressions, and lets new code keep reaching for the old names.

Approach

Removed the deprecated members from both enums and rewrote every call site to use REVERTED directly. Tests, fixtures, and a stale doc reference were updated to match.

Changes

  • stdlib: Drop deprecated APP_LOGIC_REVERTED/TEARDOWN_REVERTED/BOTH_REVERTED from RevertCode and TxExecutionResult.
  • simulator, pxe, aztec.js, end-to-end (tests): Replace remaining references with REVERTED.
  • simulator/docs: Update a stale APP_LOGIC_REVERTED reference in the public-tx-simulation doc.

…aliases

Drops the APP_LOGIC_REVERTED, TEARDOWN_REVERTED, and BOTH_REVERTED members
from both RevertCode and TxExecutionResult in favor of the unified REVERTED.
Updates all call sites accordingly.
@spalladino spalladino merged commit 460a87e into merge-train/spartan May 13, 2026
14 checks passed
@spalladino spalladino deleted the spl/remove-deprecated-revert-codes branch May 13, 2026 17:46
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.

2 participants