aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorjohnliu-dexon <42129254+johnliu-dexon@users.noreply.github.com>2018-11-27 22:56:00 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:19 +0800
commiteea0925b09140f99cbf401fd0b8a50958e711bde (patch)
treee04f41cbc8f9e2210a4cd813536ba8071446c01d /internal
parenta659b8bf85b4add36e63dabe3481ab07d78d6564 (diff)
downloadgo-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar
go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar.gz
go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar.bz2
go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar.lz
go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar.xz
go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.tar.zst
go-tangerine-eea0925b09140f99cbf401fd0b8a50958e711bde.zip
internal/ethapi: add transactionHash in blockreceipts (#58)
Diffstat (limited to 'internal')
-rw-r--r--internal/ethapi/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go
index 2226bebb1..1be3bb413 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -683,6 +683,7 @@ func (s *PublicBlockChainAPI) GetBlockReceiptsByHash(ctx context.Context, blockH
resp := make([]map[string]interface{}, 0, len(receipts))
for _, receipt := range receipts {
fields := map[string]interface{}{
+ "transactionHash": receipt.TxHash,
"gasUsed": hexutil.Uint64(receipt.GasUsed),
"cumulativeGasUsed": hexutil.Uint64(receipt.CumulativeGasUsed),
"contractAddress": nil,