From 2ee7969bde23de3ffc5efdc8b2078391fa9f88be Mon Sep 17 00:00:00 2001 From: Alexander Remie Date: Thu, 23 Sep 2021 12:22:13 +0200 Subject: [PATCH] convert eth_getRawTransaction values to hex --- etheno/jsonrpc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etheno/jsonrpc.py b/etheno/jsonrpc.py index c315353..4f91040 100644 --- a/etheno/jsonrpc.py +++ b/etheno/jsonrpc.py @@ -47,9 +47,9 @@ def decode_raw_tx(raw_tx: str): 'from': from_, 'to': to, 'nonce': tx.nonce, - 'gas': tx.gas, - 'gasPrice': tx.gas_price, - 'value': tx.value, + 'gas': hex(tx.gas), + 'gasPrice': hex(tx.gas_price), + 'value': hex(tx.value), 'data': data, 'chainId': chain_id, 'r': r,