vault: document setAutomine()

This commit is contained in:
Mark Spanbroek 2025-01-30 13:41:42 +01:00
parent 28ad5ced18
commit f9c2701282

View File

@ -16,6 +16,11 @@ async function revert() {
await ethers.provider.send("evm_setAutomine", [automine])
}
/**
* Enables or disables Hardhat's automine mode.
*
* When automine mode is disabled, transactions that revert are silently ignored!
*/
async function setAutomine(enabled) {
await ethers.provider.send("evm_setAutomine", [enabled])
}