oc · docs
docs / documentation

@orangecheck/wallet-adapter


@orangecheck/wallet-adapter / WrongAccountError

Class: WrongAccountError

Defined in: wallet-adapter/src/sign.ts:8

The wallet produced a signature that is not from the requested address — usually because it signed with its active account. activeAddress is set when the wallet reported which account that was.

Extends

  • Error

Constructors

Constructor

new WrongAccountError(requestedAddress: string, activeAddress?: string): WrongAccountError;

Defined in: wallet-adapter/src/sign.ts:10

Parameters

ParameterType
requestedAddressstring
activeAddress?string

Returns

WrongAccountError

Overrides

Error.constructor

Properties

PropertyModifierTypeInherited fromDefined in
<a id="property-activeaddress"></a> activeAddress?readonlystring-wallet-adapter/src/sign.ts:12
<a id="property-code"></a> codereadonly"E_WRONG_ACCOUNT"-wallet-adapter/src/sign.ts:9
<a id="property-message"></a> messagepublicstringError.messagenode_modules/typescript/lib/lib.es5.d.ts:1077
<a id="property-name"></a> namepublicstringError.namenode_modules/typescript/lib/lib.es5.d.ts:1076
<a id="property-requestedaddress"></a> requestedAddressreadonlystring-wallet-adapter/src/sign.ts:11
<a id="property-stack"></a> stack?publicstringError.stacknode_modules/typescript/lib/lib.es5.d.ts:1078