Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Jan 8, 2021
1 parent 0757c86 commit dedf33c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/core/contracts/test_contract_call_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import eth_abi
from eth_tester.exceptions import (
RevertTransaction,
TransactionFailed,
)
from eth_utils import (
is_text,
Expand Down Expand Up @@ -874,7 +874,7 @@ def test_call_nested_tuple_contract(nested_tuple_contract, method_input, expecte


def test_call_revert_contract(revert_contract):
with pytest.raises(RevertTransaction, match="Function has been reverted."):
with pytest.raises(TransactionFailed, match="Function has been reverted."):
# eth-tester will do a gas estimation if we don't submit a gas value,
# which does not contain the revert reason. Avoid that by giving a gas
# value.
Expand Down
4 changes: 2 additions & 2 deletions web3/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class InvalidEventABI(ValueError):
class SolidityError(ValueError):
# Inherits from ValueError for backwards compatibility
"""
Raised on a contract assert/require/revert error
Raised on a contract revert error
"""
pass

Expand All @@ -206,6 +206,6 @@ class RevertTransaction(SolidityError, ValueError):
# Inherits from ValueError for backwards compatibility
# TODO: Remove SolidityError inheritance in v6
"""
Raised on a contract assert/require/revert error
Raised on a contract revert error
"""
pass

0 comments on commit dedf33c

Please sign in to comment.