UNPKG

@nomicfoundation/hardhat-ethers

Version:
8 lines 420 B
import { assertHardhatInvariant } from "@nomicfoundation/hardhat-errors"; export function assertCanConvertToBigInt(value, variableName) { assertHardhatInvariant(typeof value === "string" || typeof value === "number" || typeof value === "bigint" || typeof value === "boolean", `Variable "${variableName}" should be a string, number, bigint or boolean`); } //# sourceMappingURL=assertion.js.map