Skip to content

Commit 814e51a

Browse files
Add close method
1 parent 1718258 commit 814e51a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pysrc/mixin_bot_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def __init__(self, mixin_config):
5858
self.api_base_url = 'https://api.mixin.one'
5959
#self.api_base_url = 'https://mixin-api.zeromesh.net'
6060

61+
async def close(self):
62+
await self.client.aclose()
63+
6164
def decode_ed25519(cls, priv):
6265
if not len(priv) % 4 == 0:
6366
priv = priv + '===='
@@ -517,7 +520,7 @@ async def get_address(self, address_id):
517520
"""
518521
return await self.__genNetworkGetRequest('/addresses/' + address_id)
519522

520-
async def transfer_to(self, user_id, asset_id, amount, memo, trace_id=None):
523+
async def transfer_to_user(self, user_id, asset_id, amount, memo, trace_id=None):
521524
encrypted_pin = self.gen_encrypted_pin()
522525
if not trace_id:
523526
trace_id = str(uuid.uuid1())

0 commit comments

Comments
 (0)