May be a raw_transaction json bug?
tigermumu opened this issue · 2 comments
tigermumu commented
tron-api-python/tronapi/trx.py
Line 575 in c04890e
Some contract trigger json is
`{
"result": {
"result": true
},
"transaction": {
"visible": false,
"txID": "3ac31ba736c67e68620c3a6ddd76beb2134c8d796e041f8128149af3b5e7f153",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"data": "0a23b56b",
"owner_address": "41f70c351d1a1e2431ced562ebe3f6041d9713c490",
"contract_address": "41bbf3f996cbbca9653209ea4ee888d2c1bbbb3451",
"call_value": 19
},
"type_url": "type.googleapis.com/protocol.TriggerSmartContract"
},
"type": "TriggerSmartContract"
}
],
"ref_block_bytes": "9b4f",
"ref_block_hash": "eea9cbc2ef529d14",
"expiration": 1578740379000,
"fee_limit": 30000,
"timestamp": 1578740320550
},
"raw_data_hex": "0a029b4f2208eea9cbc2ef529d1440f8da89a2f92d5a6f081f126b0a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412360a1541f70c351d1a1e2431ced562ebe3f6041d9713c490121541e3cf5eefe3a2abf35a344ae8a3b2f4bb29810cbd181322040a23b56b70a69286a2f92d9001b0ea01"
}
}
so, may be line 575 improve better?
owner_address = transaction['transaction']['raw_data']['contract'][0]['parameter']['value']['owner_address']
tigermumu commented
Also like line 582
tigermumu commented
I figure out mistake . close this issue