Skip to content

Commit f06e3d1

Browse files
authored
Merge pull request #367 from liquid-8/dev
and more
2 parents af83aa3 + a908abd commit f06e3d1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎uniswap/uniswap4.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
Nonce,
1717
HexBytes,
1818
)
19-
from web3._utils.abi import encode_abi
2019
from .types import AddressLike, UniswapV4_slot0, UniswapV4_position_info, UniswapV4_tick_info
2120
from .token import ERC20Token
2221
from .tokens import tokens, tokens_rinkeby
@@ -600,7 +599,7 @@ def get_token(self, address: AddressLike, abi_name: str = "erc20") -> ERC20Token
600599
def get_pool_id(self, currency0: AddressLike, currency1: AddressLike, fee : int, tickSpacing : int, hooks : AddressLike = ETH) -> bytes:
601600
if int(currency0) > (currency1):
602601
currency0 , currency1 = currency1 , currency0
603-
return self.w3.keccak_solidity(["address", "address", "int24", "int24", "address"], [(currency0, currency1, fee, tickSpacing, hooks)])
602+
return self.w3.solidity_keccak(["address", "address", "int24", "int24", "address"], [(currency0, currency1, fee, tickSpacing, hooks)])
604603

605604
# ------ Test utilities ------------------------------------------------------------
606605

0 commit comments

Comments
 (0)