From 371454b568896f3536c8645ad1eb17c3bf78e57c Mon Sep 17 00:00:00 2001 From: liquid-8 Date: Mon, 10 Jun 2024 06:25:12 +0300 Subject: [PATCH] 1 --- uniswap/uniswap4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uniswap/uniswap4.py b/uniswap/uniswap4.py index 9128eb0..6cc0246 100644 --- a/uniswap/uniswap4.py +++ b/uniswap/uniswap4.py @@ -777,8 +777,8 @@ def get_token(self, address: AddressLike, abi_name: str = "erc20") -> ERC20Token return ERC20Token(symbol, address, name, decimals) def get_pool_id(self, currency0: Union[AddressLike, str, None], currency1: Union[AddressLike, str, None], fee : int, tickSpacing : int, hooks : Union[AddressLike, str, None] = NOHOOK_ADDRESS) -> bytes: - currency0 = str(self.w3.to_checksum_address(currency0)) - currency1 = str(self.w3.to_checksum_address(currency1)) + currency0 = self.w3.to_checksum_address(str(currency0)) + currency1 = self.w3.to_checksum_address(str(currency1)) if int(currency0, 16) > int(currency1, 16): currency0 , currency1 = currency1 , currency0 pool_id = bytes(self.w3.solidity_keccak(["address", "address", "int24", "int24", "address"], [(currency0, currency1, fee, tickSpacing, hooks)])) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy