Skip to Content
Packages@tuwaio/pulsar-solanaClassesSolanaChainMismatchError

SolanaChainMismatchError

Defined in: errors.ts:9 

Thrown by checkSolanaChain (and so by executeTxAction through the Solana adapter) when the wallet is connected to another cluster than the transaction requires. Catch it to ask the user to switch networks.

Extends

  • Error

Constructors

Constructor

new SolanaChainMismatchError(requiredChain, currentChain): SolanaChainMismatchError

Defined in: errors.ts:21 

Parameters

requiredChain

string

The cluster the transaction requires.

currentChain

string

The cluster the wallet is connected to.

Returns

SolanaChainMismatchError

Overrides

Error.constructor

Properties

currentChain

currentChain: string

Defined in: errors.ts:15 

The cluster the wallet is connected to.


name

name: string = 'SolanaChainMismatchError'

Defined in: errors.ts:11 

Always 'SolanaChainMismatchError'.

Overrides

Error.name


requiredChain

requiredChain: string

Defined in: errors.ts:13 

The cluster the transaction requires, for example devnet.

Last updated on