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 952d4af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 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,9 @@

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 +234,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 952d4af

Please sign in to comment.