Skip to content

Commit 6f84989

Browse files
committed
Use regex in error test
1 parent bd1831a commit 6f84989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ethers/revert_contract_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule Ethers.RevertContractTest do
2020
assert message =~ "success must be true"
2121

2222
assert_raise Ethers.ExecutionError,
23-
"execution reverted: success must be true",
23+
~r/execution reverted: (?:revert: )?success must be true/,
2424
fn ->
2525
RevertContract.get(false) |> Ethers.call!(to: address, from: @from)
2626
end

0 commit comments

Comments
 (0)