Skip to content

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

ParameterType
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 ParameterDescription
T extends ErrorThe type of the error being searched for.

Parameters

ParameterTypeDescription
errorType(…args) => TThe error type to find.

Returns

T | undefined

The error, if it is found in the hierarchy, otherwise undefined.

Inherited from

WalletNotConnectedError.walk