Skip to content

Commit bf942c1

Browse files
committed
fix(types): Duplicate accessList as accessLists
1 parent dc9325f commit bf942c1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/ethereum_test_types/tests/test_types.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,15 @@ def test_account_merge(
610610
],
611611
}
612612
],
613+
"accessLists": [
614+
{
615+
"address": "0x0000000000000000000000000000000000001234",
616+
"storageKeys": [
617+
"0x0000000000000000000000000000000000000000000000000000000000000000",
618+
"0x0000000000000000000000000000000000000000000000000000000000000001",
619+
],
620+
}
621+
],
613622
"value": "0x0",
614623
"input": "0x0100",
615624
"gas": "0x5208",

src/ethereum_test_types/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,9 @@ def serialize_to_as_none(self, serializer):
655655
default = serializer(self)
656656
if default is not None and "to" not in default:
657657
default["to"] = None
658+
# TODO: Remove when https://github.com/ethereum/execution-specs/issues/1194 is fixed.
659+
if default is not None and "accessList" in default:
660+
default["accessLists"] = default["accessList"]
658661
return default
659662

660663

0 commit comments

Comments
 (0)