Skip to content

Commit 25925fd

Browse files
committed
disabled retries when checking for overwrites being available
1 parent 6199a31 commit 25925fd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

IceCreamSwapWeb3/Web3Advanced.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,17 @@ def _check_overwrites_available(self) -> bool:
209209
test_value = 1234
210210
overwrite_tester_contract = self.eth.contract(abi=overwrite_tester_abi, address=test_address)
211211
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+
}
217220
}
218221
}
219-
})
222+
)
220223
except Exception as e:
221224
print(f"RPC does not support state overwrites, got: {repr(e)}")
222225
return False

0 commit comments

Comments
 (0)