@@ -45,7 +45,7 @@ def test_transient_storage_unset_values(state_test: StateTestFiller, pre: Alloc)
45
45
46
46
code_address = pre .deploy_contract (
47
47
code = code , # type: ignore
48
- storage = { slot : 1 for slot in slots_under_test } ,
48
+ storage = dict . fromkeys ( slots_under_test , 1 ) ,
49
49
)
50
50
51
51
tx = Transaction (
@@ -54,7 +54,7 @@ def test_transient_storage_unset_values(state_test: StateTestFiller, pre: Alloc)
54
54
gas_limit = 1_000_000 ,
55
55
)
56
56
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 ) )}
58
58
59
59
state_test (
60
60
env = env ,
@@ -79,7 +79,7 @@ def test_tload_after_tstore(state_test: StateTestFiller, pre: Alloc):
79
79
)
80
80
code_address = pre .deploy_contract (
81
81
code = code , # type: ignore
82
- storage = { slot : 0xFF for slot in slots_under_test } ,
82
+ storage = dict . fromkeys ( slots_under_test , 0xFF ) ,
83
83
)
84
84
85
85
tx = Transaction (
@@ -114,7 +114,7 @@ def test_tload_after_sstore(state_test: StateTestFiller, pre: Alloc):
114
114
)
115
115
code_address = pre .deploy_contract (
116
116
code = code , # type: ignore
117
- storage = { slot : 1 for slot in slots_under_test } ,
117
+ storage = dict . fromkeys ( slots_under_test , 1 ) ,
118
118
)
119
119
120
120
tx = Transaction (
@@ -127,7 +127,7 @@ def test_tload_after_sstore(state_test: StateTestFiller, pre: Alloc):
127
127
code_address : Account (
128
128
code = code ,
129
129
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 ) ,
131
131
)
132
132
}
133
133
@@ -157,7 +157,7 @@ def test_tload_after_tstore_is_zero(state_test: StateTestFiller, pre: Alloc):
157
157
158
158
code_address = pre .deploy_contract (
159
159
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 ) ,
161
161
)
162
162
163
163
tx = Transaction (
@@ -168,7 +168,7 @@ def test_tload_after_tstore_is_zero(state_test: StateTestFiller, pre: Alloc):
168
168
169
169
post = {
170
170
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 )
172
172
)
173
173
}
174
174
0 commit comments