WalletError
What WalletError means, which codes it carries and how to catch it in ensforge. The wallet is not in a state to sign: wrong chain or no account.
Error class2 codes · @ensforge/sdk
The wallet is not in a state to sign: wrong chain or no account.
Any write can fail with WalletError: it is part of Errors.WriteError.
Fields
| Field | Type | Description |
|---|---|---|
expectedChainId | number | |
actualChainId | number |
Codes
| Code | Meaning | Retryable |
|---|---|---|
CHAIN_MISMATCH | The wallet is on chain ?, expected ?. | No |
ACCOUNT_NOT_FOUND | The wallet has no account to sign with. | No |
Catch it
Effect.catchTag("WalletError", …) or error instanceof Errors.WalletError. See Handle errors.
Was this page helpful?