From 00acbe474e76e501fbdf9f33673f8784fa5216d5 Mon Sep 17 00:00:00 2001 From: liquid-8 Date: Tue, 9 Jan 2024 20:57:19 +0200 Subject: [PATCH] fix p2.5 --- uniswap/uniswap4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniswap/uniswap4.py b/uniswap/uniswap4.py index 46e2e60..2357982 100644 --- a/uniswap/uniswap4.py +++ b/uniswap/uniswap4.py @@ -156,7 +156,7 @@ def get_price( try: price = int(self.w3.eth.call(signed_txn)) except ContractLogicError as revert: - price = int(self.w3.codec.decode(["int128[]","uint160","uint32"], bytes(revert.data))[1]) + price = int(self.w3.codec.decode(["int128[]","uint160","uint32"], bytes(revert.data))[1]) # type: ignore return price def get_slot0(