andelf / tronpy

TRON Python Client Library.
MIT License
212 stars 96 forks source link

USDT-TRC20 转帐失败 #3

Closed MioYvo closed 4 years ago

MioYvo commented 4 years ago

Python: 3.7.8 tronpy: 0.1.3(0.1.2测试没问题)

tron.py 777行 def trigger_const_smart_contract_functionmsg = ret['result']['message'] KeyError: 'message'

USDT-转帐 TransactionRet: {'result': True, 'txid': '0b9c085adefee7a40b98c905eedf1ea6a7310ea7f23a17c55c1ee5cc5c21b977'} TransactionInfo:

{'id': '0b9c085adefee7a40b98c905eedf1ea6a7310ea7f23a17c55c1ee5cc5c21b977', 'fee': 146310, 'blockNumber': 23267640, 'blockTimeStamp': 1600078473000, 'contractResult': ['0000000000000000000000000000000000000000000000000000000000000000'], 'contract_address': 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', 'receipt': {'energy_fee': 146310, 'energy_usage_total': 14631, 'net_usage': 383, 'result': 'SUCCESS'}, 'log': [{'address': 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', 'topics': ['ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '000000000000000000000000651e3e99bc10b26731696cc674e487dd2e3c532d', '0000000000000000000000004dbaaf85d6d476dbd73fd361cfa315dd8474b81a'], 'data': '0000000000000000000000000000000000000000000000000000000000002710'}]}
andelf commented 4 years ago

多谢。已经在 0.1.4 修复。😁