import "../_dnt.polyfills.js"; import { is } from "../rune/mod.js" import { BlockRune } from "./BlockRune.js" import { Chain } from "./ChainRune.js" import { PatternRune } from "./PatternRune.js" export class BlockHashRune extends PatternRune { block() { return this.chain.connection .call("chain_getBlock", this.as(BlockHashRune)) .unhandle(is(null)) .into(BlockRune, this.chain, this) } }