2
votes
Accepted
Modify storage in Ganache or Hardhat Network?
You can use hardhat_setStorageAt:
await ethers.provider.send("hardhat_setStorageAt", [contractAddress, storageSlot, newValue])
See examples at https://github.com/mixbytes/hardhat-modify-...
1
vote
Exceeds block gas limit or base fee exceeds gas limit
Regarding your first question, for Ethereum the minimum gas consumed for a transaction is 21k. Thus having gas limit set to 10k will result in an error.
For the second error on block gas limit, I'm ...
1
vote
Time-dependent tests with Hardhat?
For any future wanderers:
Hardhat added a network-helpers library with convenient JS interface:
https://hardhat.org/hardhat-network-helpers/docs/overview
https://www.npmjs.com/package/@...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ganache × 593truffle × 216
solidity × 184
web3js × 120
metamask × 63
ganache-cli × 48
remix × 47
go-ethereum × 46
blockchain × 34
contract-development × 32
web3.py × 31
truffle-migration × 31
testing × 27
javascript × 26
brownie × 23
nodejs × 22
testrpc × 21
truffle-test × 21
truffle-contract × 18
contract-deployment × 17
ethereumjs × 17
transactions × 16
dapps × 14
gas-limit × 13
private-blockchain × 12