Add assurance that the relevant EIP1271 contract address is provided for verifying the signature.

pull/3576/head
derekpierre 2025-01-27 15:14:33 -05:00
parent 9123733ac1
commit 846cd931c7
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -341,6 +341,9 @@ def test_authenticate_eip1271(mocker, get_random_checksum_address):
EIP1271Auth.authenticate(
typedData, valid_message_signature, eip1271_mock_contract.address, providers
)
w3.eth.contract.assert_called_once_with(
address=eip1271_mock_contract.address, abi=EIP1271Auth.EIP1271_ABI
)
# invalid typed data - no chain id
with pytest.raises(EvmAuth.InvalidData):