NOT_APPROVED
What NOT_APPROVED means, why UnauthorizedError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
UnauthorizedErrorNot retryable
@ensforge/sdk
What happened
The account is not approved to manage this name.
What to show users
| Title | Message | Action |
|---|---|---|
| Approval needed | Your account is not approved to manage this name. |
How to fix
Approve the operator first, or send from the owner's account.
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
primaryName.set | when the signer may not name the address. |
wrapper.wrap | when the account does not own the name, or the manager has not approved the NameWrapper. |
Catch it
Errors.hasCode("NOT_APPROVED") narrows to this error. See Handle errors.
Was this page helpful?