@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.
- Throws InvalidInputError -
callsis empty, or a call'schainIdis notchainId. The complete union is AssertCallsOnChainError.
Parameters
chainId
number
calls
readonly UnsignedCall[]
Returns
void