From f8026e76b1343471e44dcae26ac584b256ce3578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ariano=20Fonseca=20=C3=82ngelo?= Date: Wed, 11 Dec 2024 15:11:51 +0000 Subject: [PATCH] v1.0.6 * Minor improvements --- README.md | 3 +++ cryptapi/CryptAPI.py | 2 ++ requirements.txt | 2 +- setup.py | 2 +- test.py | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d7c496..075a2c7 100644 --- a/README.md +++ b/README.md @@ -150,3 +150,6 @@ Contact us @ https://cryptapi.io/contacts/ #### 1.0.5 * Minor fixes * Improve error handling + +#### 1.0.6 +* Minor improvements diff --git a/cryptapi/CryptAPI.py b/cryptapi/CryptAPI.py index ebc9c88..daf5d3a 100644 --- a/cryptapi/CryptAPI.py +++ b/cryptapi/CryptAPI.py @@ -30,6 +30,8 @@ def __init__(self, coin, own_address, callback_url, parameters=None, ca_params=N if not own_address: raise Exception('Address is Missing') + coin = coin.replace('/', '_') + self.coin = coin self.own_address = own_address self.callback_url = callback_url diff --git a/requirements.txt b/requirements.txt index 37912b8..6f89372 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -requests>=2.31.0 \ No newline at end of file +requests>=2.32.0 \ No newline at end of file diff --git a/setup.py b/setup.py index 17cb19e..66df14e 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ name='python-cryptapi', - version='1.0.5', + version='1.0.6', packages=find_packages(), diff --git a/test.py b/test.py index c41ee82..f5eb0dd 100644 --- a/test.py +++ b/test.py @@ -3,7 +3,7 @@ ca = CryptAPIHelper( 'bep20_usdt', '0xA6B78B56ee062185E405a1DDDD18cE8fcBC4395d', - 'https://webhook.site/15d94bb3-c3ae-4b68-8120-5dd962988a6d', + 'https://webhook.site/13308bd5-d20b-4d19-8597-bd9be7db36fe', { 'order_id': '1345e13232' },