Update test for EIP712 authentication when address from signature does not match expected address.

pull/3522/head
derekpierre 2024-07-24 10:49:41 -04:00
parent aa00d3aeb8
commit 607e667350
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ def test_authenticate_eip712(valid_eip712_auth_message, get_random_checksum_addr
)
# mismatch with expected address
with pytest.raises(EvmAuth.AuthenticationFailed):
with pytest.raises(
EvmAuth.AuthenticationFailed, match="signature not valid for expected address"
):
EIP712Auth.authenticate(
data=data,
signature=signature,