Hot answers tagged

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-...
user avatar
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 ...
user avatar
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/@...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible