We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent30a4efe commit1fee875Copy full SHA for 1fee875
uniswap/uniswap4.py
@@ -735,8 +735,8 @@ def _get_tx_params(self, value: Wei = Wei(0), gas: Optional[Wei] = None, max_fee
735
# ------ Helpers ------------------------------------------------------------
736
737
defget_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:
738
-currency0=self.w3.to_checksum_address(str(currency0))
739
-currency1=self.w3.to_checksum_address(str(currency1))
+currency0=str(currency0)
+currency1=str(currency1)
740
ifint(currency0,16)>int(currency1,16):
741
currency0 ,currency1=currency1 ,currency0
742
pool_id=bytes(self.w3.solidity_keccak(["address","address","int24","int24","address"], [(currency0,currency1,fee,tickSpacing,hooks)]))