mirror of
https://github.com/status-im/codex-contracts-eth.git
synced 2025-02-07 06:04:26 +00:00
vault: document setAutomine()
This commit is contained in:
parent
28ad5ced18
commit
f9c2701282
@ -16,6 +16,11 @@ async function revert() {
|
|||||||
await ethers.provider.send("evm_setAutomine", [automine])
|
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) {
|
async function setAutomine(enabled) {
|
||||||
await ethers.provider.send("evm_setAutomine", [enabled])
|
await ethers.provider.send("evm_setAutomine", [enabled])
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user