Skip to content

Conversation

@madisoncarter1234
Copy link

Fixes #3812

Adds a version check at the start of upgrade_esp_token_v2() and upgrade_esp_token_v2_multisig_owner() to fail early with a clear error message if the token is already on V2.

Before: Attempting to upgrade an already-V2 token resulted in a cryptic InvalidInitialization revert (0xf92ee8a9).

After: Users get a clear message: EspToken is already on V2, no upgrade needed

  Fixes EspressoSystems#3812

  Add version check at the start of upgrade_esp_token_v2() and
  upgrade_esp_token_v2_multisig_owner() to fail early with a clear
  error message if the token is already on V2.

  Previously, attempting to upgrade an already-V2 token would result
  in a cryptic 'InvalidInitialization' revert (0xf92ee8a9). Now users
  get a clear message: 'EspToken is already on V2, no upgrade needed'
@CLAassistant
Copy link

CLAassistant commented Dec 3, 2025

CLA assistant check
All committers have signed the CLA.

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.

deploy: better error message if token already on V2

2 participants