INVALID_ROLES
What INVALID_ROLES means, why InvalidInputError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
InvalidInputErrorNot retryable
@ensforge/sdk
What happened
undefined is not a valid role bitmap.
What to show users
| Title | Message | Action |
|---|---|---|
| Invalid permissions | The selected permissions are not valid. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
registry.deploy | for invalid input. |
resolver.create | for invalid input, or a salt whose resolver already exists. |
role.grant | for invalid input or targets. |
role.revoke | for invalid input or targets. |
subname.create | for invalid input. |
Catch it
Errors.hasCode("INVALID_ROLES") narrows to this error. See Handle errors.
Was this page helpful?