({
chain,
currentChainId,
}: AssertCurrentChainParameters)
| 18 | | ErrorType |
| 19 | |
| 20 | export function assertCurrentChain({ |
| 21 | chain, |
| 22 | currentChainId, |
| 23 | }: AssertCurrentChainParameters): void { |
| 24 | if (!chain) throw new ChainNotFoundError() |
| 25 | if (currentChainId !== chain.id) |
| 26 | throw new ChainMismatchError({ chain, currentChainId }) |
| 27 | } |
no outgoing calls
no test coverage detected