Skip to content

Commit de010db

Browse files
committed
txn hash
1 parent 81c5aff commit de010db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zilliqaetl/mappers/transaction_mapper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ def map_transaction(tx_block, txn):
3838
**map_receipt(txn)
3939
}
4040
block["fee"] = block.pop("gas_price") * block.pop("gas_used")
41-
block["value"] = 0 if block["receipt_status"] == 0 else block["value"]
41+
if block["receipt_status"] == 0:
42+
block["value"] = 0
43+
block["hash"]="0x"
4244
return block
4345

4446

0 commit comments

Comments
 (0)