UPGRADE_NOT_APPROVED
What UPGRADE_NOT_APPROVED means, why UnsupportedError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
UnsupportedErrorNot retryable
@ensforge/sdk
What happened
The upgrade target is not an approved implementation.
What to show users
| Title | Message | Action |
|---|---|---|
| Upgrade not allowed | This upgrade has not been approved by ENS. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
registry.upgrade | when the target is not approved. |
resolver.upgrade | when the resolver or target cannot be upgraded. |
Any write can fail with UnsupportedError: it is part of Errors.WriteError.
Catch it
Errors.hasCode("UPGRADE_NOT_APPROVED") narrows to this error. See Handle errors.
Was this page helpful?