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

Commitb771819

Browse files
author
Kotsias, Panagiotis-Christos
committed
Added TokenAddress
1 parent3cd8bfb commitb771819

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎etherscan/utils/datatypes.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
frometherscan.enums.messages_enumimportMessagesEnumasmsgs
22

33
_CONTRACT_LEN=42
4+
_TOKEN_LEN=42
45
_TX_LEN=66
56
_WALLET_LEN=42
67

@@ -39,6 +40,12 @@ def __init__(self, address: str):
3940
self._address=self._check_len(self._check_0x(address))
4041

4142

43+
classTokenAddress(BaseAddress):
44+
def__init__(self,address:str):
45+
self._maxlen=_TOKEN_LEN
46+
self._address=self._check_len(self._check_0x(address))
47+
48+
4249
classTxHash(BaseAddress):
4350
def__init__(self,address:str):
4451
self._maxlen=_TX_LEN

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp