Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions uniswap/uniswap4.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
Nonce,
HexBytes,
)
from web3._utils.abi import encode_abi
from .types import AddressLike, UniswapV4_slot0, UniswapV4_position_info, UniswapV4_tick_info
from .token import ERC20Token
from .tokens import tokens, tokens_rinkeby
Expand Down Expand Up @@ -600,7 +599,7 @@ def get_token(self, address: AddressLike, abi_name: str = "erc20") -> ERC20Token
def get_pool_id(self, currency0: AddressLike, currency1: AddressLike, fee : int, tickSpacing : int, hooks : AddressLike = ETH) -> bytes:
if int(currency0) > (currency1):
currency0 , currency1 = currency1 , currency0
return self.w3.keccak_solidity(["address", "address", "int24", "int24", "address"], [(currency0, currency1, fee, tickSpacing, hooks)])
return self.w3.solidity_keccak(["address", "address", "int24", "int24", "address"], [(currency0, currency1, fee, tickSpacing, hooks)])

# ------ Test utilities ------------------------------------------------------------

Expand Down