Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dicklesworthstone/web3-testing
Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking.
Passed 17 of 21 test cases with the skill, and 18 of 21 without it.
1 fixed17 passed either way2 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
How should the `hardhat` network block in `hardhat.config.js` be structured to default to mainnet forking at a fixed block number?
| Checked | Without skill | With skill |
|---|---|---|
| The network forking url uses process.env.MAINNET_RPC_URL. | Passed | Passed |
| The network forking blockNumber is set to 15000000. | Missed | Passed |
The instructions your model reads when the skill loads.
Master comprehensive testing strategies for smart contracts using Hardhat, Foundry, and advanced testing patterns.
// hardhat.config.js
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-etherscan");
require("hardhat-gas-reporter");
require("solidity-coverage");
module.exports = {
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
forking: {
url: process.env.MAINNET_RPC_URL,
blockNumber: 15000000,
},
},
test cases passed, vs 18 / 21 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.