Package Exports
- wookashwackomytest-polkahat-network-helpers
- wookashwackomytest-polkahat-network-helpers/dist/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wookashwackomytest-polkahat-network-helpers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Hardhat Network Helpers
Hardhat Network Helpers is a library that provides a set of utility functions to interact with the Hardhat Network. You can read their full documentation here.
Installation
We recommend using npm 7 or later:
npm install --save-dev @nomicfoundation/hardhat-network-helpers
Usage
Import it and use it in any of your files. For example, this Hardhat script mines some blocks and then prints the block number.
const helpers = require("@nomicfoundation/hardhat-network-helpers");
async function main() {
// mine 100 blocks
await helpers.mine(100);
console.log("The current block number is", await helpers.time.latestBlock());
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});