API ReferenceErrorsClass
WorkflowSignerChangedError
Thrown when a prepared workflow observes a different connected account than the account used to plan it. The caller must rebuild the workflow for the newly connected wallet so balance, allowance, signature, and transaction decisions are all made for one signer.
Extends
Constructors
Constructor
new WorkflowSignerChangedError(expectedAddress, actualAddress): WorkflowSignerChangedError;Parameters
| Parameter | Type |
|---|---|
expectedAddress | `0x${string}` |
actualAddress | `0x${string}` |
Returns
WorkflowSignerChangedError
Overrides
WalletNotConnectedError.constructor
Properties
actualAddress
readonly actualAddress: `0x${string}`;expectedAddress
readonly expectedAddress: `0x${string}`;Methods
walk()
walk<T>(errorType): T | undefined;Checks if the provided ErrorType is in the error hierarchy for the current error.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends Error | The type of the error being searched for. |
Parameters
| Parameter | Type | Description |
|---|---|---|
errorType | (…args) => T | The error type to find. |
Returns
T | undefined
The error, if it is found in the hierarchy, otherwise undefined.