Skip to content

Commit

Permalink
Update keyerror -> validationerror for mismatched from address in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
njgheorghita committed Jan 10, 2019
1 parent d1707b8 commit 197b5a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/core/middleware/test_transaction_signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import eth_account
import eth_keys
from eth_tester.exceptions import ValidationError
from eth_utils import (
to_bytes,
to_hex,
Expand Down Expand Up @@ -231,12 +232,12 @@ def fund_account(w3):
),
(
# Transaction with mismatched sender
# expect a key error with sendTransaction + unmanaged account
# expect a validation error with sendTransaction + unmanaged account
{
'gas': 21000,
'value': 10
},
KeyError,
ValidationError,
SAME_KEY_MIXED_TYPE,
ADDRESS_2,
),
Expand Down

0 comments on commit 197b5a0

Please sign in to comment.