Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1fee875

Browse files
authored
Update uniswap4.py: removed to_checksum_address in get_pool_id()
1 parent30a4efe commit1fee875

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎uniswap/uniswap4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,8 @@ def _get_tx_params(self, value: Wei = Wei(0), gas: Optional[Wei] = None, max_fee
735735
# ------ Helpers ------------------------------------------------------------
736736

737737
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))
738+
currency0=str(currency0)
739+
currency1=str(currency1)
740740
ifint(currency0,16)>int(currency1,16):
741741
currency0 ,currency1=currency1 ,currency0
742742
pool_id=bytes(self.w3.solidity_keccak(["address","address","int24","int24","address"], [(currency0,currency1,fee,tickSpacing,hooks)]))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp