@@ -45,7 +45,7 @@ def test_transient_storage_unset_values(state_test: StateTestFiller, pre: Alloc)
4545
4646 code_address = pre .deploy_contract (
4747 code = code , # type: ignore
48- storage = { slot : 1 for slot in slots_under_test } ,
48+ storage = dict . fromkeys ( slots_under_test , 1 ) ,
4949 )
5050
5151 tx = Transaction (
@@ -54,7 +54,7 @@ def test_transient_storage_unset_values(state_test: StateTestFiller, pre: Alloc)
5454 gas_limit = 1_000_000 ,
5555 )
5656
57- post = {code_address : Account (storage = { slot : 0 for slot in slots_under_test } )}
57+ post = {code_address : Account (storage = dict . fromkeys ( slots_under_test , 0 ) )}
5858
5959 state_test (
6060 env = env ,
@@ -79,7 +79,7 @@ def test_tload_after_tstore(state_test: StateTestFiller, pre: Alloc):
7979 )
8080 code_address = pre .deploy_contract (
8181 code = code , # type: ignore
82- storage = { slot : 0xFF for slot in slots_under_test } ,
82+ storage = dict . fromkeys ( slots_under_test , 0xFF ) ,
8383 )
8484
8585 tx = Transaction (
@@ -114,7 +114,7 @@ def test_tload_after_sstore(state_test: StateTestFiller, pre: Alloc):
114114 )
115115 code_address = pre .deploy_contract (
116116 code = code , # type: ignore
117- storage = { slot : 1 for slot in slots_under_test } ,
117+ storage = dict . fromkeys ( slots_under_test , 1 ) ,
118118 )
119119
120120 tx = Transaction (
@@ -127,7 +127,7 @@ def test_tload_after_sstore(state_test: StateTestFiller, pre: Alloc):
127127 code_address : Account (
128128 code = code ,
129129 storage = {slot - 1 : 0xFF for slot in slots_under_test }
130- | { slot : 0 for slot in slots_under_test } ,
130+ | dict . fromkeys ( slots_under_test , 0 ) ,
131131 )
132132 }
133133
@@ -157,7 +157,7 @@ def test_tload_after_tstore_is_zero(state_test: StateTestFiller, pre: Alloc):
157157
158158 code_address = pre .deploy_contract (
159159 code = code , # type: ignore
160- storage = { slot : 0xFFFF for slot in slots_to_write + slots_to_read } ,
160+ storage = dict . fromkeys ( slots_to_write + slots_to_read , 0xFFFF ) ,
161161 )
162162
163163 tx = Transaction (
@@ -168,7 +168,7 @@ def test_tload_after_tstore_is_zero(state_test: StateTestFiller, pre: Alloc):
168168
169169 post = {
170170 code_address : Account (
171- storage = { slot : 0 for slot in slots_to_read } | { slot : 0xFFFF for slot in slots_to_write }
171+ storage = dict . fromkeys ( slots_to_read , 0 ) | dict . fromkeys ( slots_to_write , 0xFFFF )
172172 )
173173 }
174174
0 commit comments