import type { NumberLike } from "../../../types.js"; import type { EthereumProvider } from "hardhat/types/providers"; import { toRpcQuantity } from "../../conversion.js"; export async function setBlockGasLimit( provider: EthereumProvider, blockGasLimit: NumberLike, ): Promise { const blockGasLimitHex = toRpcQuantity(blockGasLimit); await provider.request({ method: "evm_setBlockGasLimit", params: [blockGasLimitHex], }); }