In Ape 0.7.4 and lower, this works perfectly. Now after 0.7.5, it throws an error. The error goes away if I remove the access_list parameter.
Traceback (most recent call last):
File "/Users/xxx/opt/anaconda3/envs/ape/lib/python3.10/site-packages/eth_pydantic_types/serializers.py", line 3, in <lambda>
hex_serializer = plain_serializer_function_ser_schema(function=lambda x: x.hex())
AttributeError: 'str' object has no attribute 'hex'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/xxx/Scripts/xxx/xxx.py", line 1036, in <module>
main()
File "/Users/xxx/Scripts/xxx/xxx.py", line 706, in main
tx = arb_contract(
File "/Users/xxx/opt/anaconda3/envs/ape/lib/python3.10/site-packages/ape/contracts/base.py", line 849, in __call__
return super().__call__(*args, **kwargs)
File "/Users/xxx/opt/anaconda3/envs/ape/lib/python3.10/site-packages/ape/api/address.py", line 102, in __call__
return sender.call(txn, **kwargs)
File "/Users/xxx/opt/anaconda3/envs/ape/lib/python3.10/site-packages/ape/api/accounts.py", line 152, in call
signed_txn = self.sign_transaction(txn, **signer_options)
File "/Users/xxx/opt/anaconda3/envs/ape/lib/python3.10/site-packages/ape_accounts/accounts.py", line 218, in sign_transaction
txn.model_dump(exclude_none=True, by_alias=True), self.__key
File "/Users/xxx/opt/anaconda3/envs/ape/lib/python3.10/site-packages/ethpm_types/base.py", line 17, in model_dump
return super().model_dump(*args, **kwargs)
File "/Users/xxx/opt/anaconda3/envs/ape/lib/python3.10/site-packages/pydantic/main.py", line 308, in model_dump
return self.__pydantic_serializer__.to_python(
pydantic_core._pydantic_core.PydanticSerializationError: Error calling function `<lambda>`: AttributeError: 'str' object has no attribute 'hex'
Environment information
ape
and plugin versions:ape-config.yaml
(NOTE: do not post anything private like RPC urls or secrets!):What went wrong?
Test script I have been using for a while now has started throwing errors related to access list in Ape 0.7.5 and higher.