kisstron

KISS-friendly Tron CLI wallet
git clone git://git.luxferre.top/kisstron.git
Log | Files | Refs | README

commit 8ae332e74dbec4c714ea2730ca99bc155bf13d30
parent 44ff9837867694fec9483f194c95701eadad3292
Author: Luxferre <lux@ferre>
Date:   Wed, 24 Apr 2024 17:44:23 +0300

Improved error msgs

Diffstat:
Mkisstron.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/kisstron.py b/kisstron.py @@ -337,6 +337,7 @@ def sendtrc20(network: str, pk: str, ticker: str, toaddr: str, res['result'] = receipt if receipt['receipt']['result'] == 'OUT_OF_ENERGY': res['message'] = 'Not enough energy for transaction!' + res['message'] += '\nTransaction ID %s' % receipt['id'] return res res['success'] = True res['message'] = 'Sent %f %s to %s\nTransaction ID %s' % (amt, @@ -440,6 +441,7 @@ def broadcastjson(network, tjson): if ('receipt' in receipt and 'result' in receipt['receipt'] and receipt['receipt']['result'] == 'OUT_OF_ENERGY'): res['message'] = 'Not enough energy for transaction!' + res['message'] += '\nTransaction ID %s' % receipt['id'] return res res['success'] = True res['message'] = 'Transaction sent\nTransaction ID %s' % receipt['id']