mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-09 09:03:08 +00:00
clean up
This commit is contained in:
parent
ff4dc5dfd7
commit
e5290daf55
@ -97,4 +97,4 @@ suite "Testing helpers - contracts":
|
||||
await provider.close()
|
||||
|
||||
test "revert works with provider":
|
||||
check await helpersContract.doRevert(revertReason).reverts()
|
||||
check await helpersContract.doRevert(revertReason).reverts(revertReason)
|
||||
|
||||
@ -3,7 +3,8 @@ pragma solidity ^0.8.0;
|
||||
|
||||
contract TestHelpers {
|
||||
|
||||
function revertsWith(string calldata revertReason) public pure {
|
||||
require(false, revertReason);
|
||||
function doRevert(string calldata reason) public pure {
|
||||
// Revert every tx with given reason
|
||||
require(false, reason);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user