From 78b10c4a3ee57d738eb1ef6e4ef3749f5d10728c Mon Sep 17 00:00:00 2001 From: Giacomo Licari Date: Tue, 28 Nov 2023 16:52:59 +0100 Subject: [PATCH] Fix Token.send() --- api/api/api.py | 1 - api/api/services/token.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/api/api.py b/api/api/api.py index 81c7f1c..2dd0219 100644 --- a/api/api/api.py +++ b/api/api/api.py @@ -132,6 +132,5 @@ def ask(): message = "".join([arg['message'] for arg in e.args]) return jsonify(errors=[message]), 400 - app.register_blueprint(apiv1, url_prefix="/api/v1") return app diff --git a/api/api/services/token.py b/api/api/services/token.py index bb3f119..2b54e75 100644 --- a/api/api/services/token.py +++ b/api/api/services/token.py @@ -22,5 +22,5 @@ def transfer(self, sender_address, recipient_address, amount_wei): 'from': sender_address }) - tx_hash = self.w3.eth.send_transactions(transfer_tx) + tx_hash = self.w3.eth.send_transaction(transfer_tx) return tx_hash.hex() \ No newline at end of file