@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / assertCallsOnChain

Function: assertCallsOnChain()

assertCallsOnChain(chainId, calls): void

Defined in: packages/sdk/src/executor/guard.ts:25

Throw InvalidInputError when any call names a chain other than the executor's, or when there is nothing to execute. Applied by every built-in executor as its first step; a custom executor should call it too.

Parameters

chainId

number

calls

readonly UnsignedCall[]

Returns

void