Skip to content

Commit

Permalink
Stop changing Revert error to TransactionFailed
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Feb 24, 2020
1 parent e4f23a4 commit 0bc7395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eth_tester/backends/pyevm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def _max_available_gas(self):

@replace_exceptions({
EVMInvalidInstruction: TransactionFailed,
EVMRevert: TransactionFailed})
})
def estimate_gas(self, transaction):
evm_transaction = self._get_normalized_and_unsigned_evm_transaction(assoc(
transaction, 'gas', 21000))
Expand Down
2 changes: 1 addition & 1 deletion eth_tester/utils/backend_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def test_can_estimate_gas_after_exception_raised_estimating_gas(self, eth_tester
'throw_contract',
'willThrow',
)
with pytest.raises(TransactionFailed):
with pytest.raises(EVMRevert):
eth_tester.estimate_gas(dissoc(call_will_throw_transaction, 'gas'))

call_set_value_transaction = _make_call_throws_transaction(
Expand Down

0 comments on commit 0bc7395

Please sign in to comment.