({
blockHash,
blockNumber,
}: {
blockHash?: Hash | undefined
blockNumber?: bigint | undefined
})
| 7 | } |
| 8 | export class BlockNotFoundError extends BaseError { |
| 9 | constructor({ |
| 10 | blockHash, |
| 11 | blockNumber, |
| 12 | }: { |
| 13 | blockHash?: Hash | undefined |
| 14 | blockNumber?: bigint | undefined |
| 15 | }) { |
| 16 | let identifier = 'Block' |
| 17 | if (blockHash) identifier = `Block at hash "${blockHash}"` |
| 18 | if (blockNumber) identifier = `Block at number "${blockNumber}"` |
| 19 | super(`${identifier} could not be found.`, { name: 'BlockNotFoundError' }) |
| 20 | } |
| 21 | } |
nothing calls this directly
no outgoing calls
no test coverage detected