@nomicfoundation/hardhat-ethers
Version:
Hardhat plugin for ethers
8 lines • 420 B
JavaScript
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