Skip to content

Commit 68243c9

Browse files
committed
feat: add inj-to-eth address function
1 parent 7840b47 commit 68243c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyinjective/wallet.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ def get_subaccount_id(self, index: int) -> str:
263263
id = index.to_bytes(12, byteorder='big').hex()
264264
return '0x' + self.addr.hex() + id
265265

266+
def get_ethereum_address(self) -> str:
267+
return '0x' + self.addr.hex()
268+
266269
async def async_init_num_seq(self, lcd_endpoint: str) -> "Address":
267270
async with aiohttp.ClientSession() as session:
268271
async with session.request(

0 commit comments

Comments
 (0)