Skip to content

Commit 320dfd0

Browse files
committed
Fixes
- fix liquidator.py compatibility with newer web3.py - fix wrong arbiscan tx URL format (missing 0x)
1 parent 92a95d3 commit 320dfd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/liquidator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@
146146
)
147147
sys.exit(1)
148148

149-
w3.middleware_onion.add(middleware.construct_sign_and_send_raw_middleware(account))
149+
w3.middleware_onion.add(middleware.SignAndSendRawMiddlewareBuilder.build(account))
150150

151151
w3.eth.default_account = account.address
152152

153153

154154
def tx_url(txid):
155-
return f"https://{'' if args.mainnet else 'sepolia.'}arbiscan.io/tx/{txid}"
155+
return f"https://{'' if args.mainnet else 'sepolia.'}arbiscan.io/tx/0x{txid}"
156156

157157

158158
def get_contract(name, addr):

0 commit comments

Comments
 (0)