File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -209,14 +209,17 @@ def _check_overwrites_available(self) -> bool:
209
209
test_value = 1234
210
210
overwrite_tester_contract = self .eth .contract (abi = overwrite_tester_abi , address = test_address )
211
211
try :
212
- response = overwrite_tester_contract .functions .getSlot0 ().call (state_override = {
213
- test_address : {
214
- "code" : overwrite_tester_bytecode ,
215
- "stateDiff" : {
216
- "0x" + "00" * 32 : "0x" + hex (test_value )[2 :].rjust (64 , "0" )
212
+ response = overwrite_tester_contract .functions .getSlot0 ().call (
213
+ transaction = {"no_retry" : True },
214
+ state_override = {
215
+ test_address : {
216
+ "code" : overwrite_tester_bytecode ,
217
+ "stateDiff" : {
218
+ "0x" + "00" * 32 : "0x" + hex (test_value )[2 :].rjust (64 , "0" )
219
+ }
217
220
}
218
221
}
219
- } )
222
+ )
220
223
except Exception as e :
221
224
print (f"RPC does not support state overwrites, got: { repr (e )} " )
222
225
return False
You can’t perform that action at this time.
0 commit comments