Compact gas price limit fields in tx json
This commit is contained in:
parent
586eccfba0
commit
43f3aff255
@ -410,12 +410,14 @@ class TxFactory:
|
|||||||
txe = EIP155Transaction(tx, tx['nonce'], tx['chainId'])
|
txe = EIP155Transaction(tx, tx['nonce'], tx['chainId'])
|
||||||
txes = txe.serialize()
|
txes = txe.serialize()
|
||||||
gas_price = strip_0x(txes['gasPrice'])
|
gas_price = strip_0x(txes['gasPrice'])
|
||||||
|
gas_price = compact(gas_price)
|
||||||
gas = strip_0x(txes['gas'])
|
gas = strip_0x(txes['gas'])
|
||||||
|
gas = compact(gas)
|
||||||
return {
|
return {
|
||||||
'from': tx['from'],
|
'from': tx['from'],
|
||||||
'to': txes['to'],
|
'to': txes['to'],
|
||||||
'gasPrice': add_0x(compact(gas_price)),
|
'gasPrice': add_0x(gas_price, compact_value=True),
|
||||||
'gas': add_0x(compact(gas)),
|
'gas': add_0x(gas, compact_value=True),
|
||||||
'data': txes['data'],
|
'data': txes['data'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user