From 4dc28f03d04b98e644f2b2d46789d8d3b4b995f2 Mon Sep 17 00:00:00 2001 From: Richard Liu Date: Fri, 22 Mar 2019 23:23:47 -0700 Subject: [PATCH] save data field (#629) --- api/service/explorer/structs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/service/explorer/structs.go b/api/service/explorer/structs.go index 9979ce16c..62227fa57 100644 --- a/api/service/explorer/structs.go +++ b/api/service/explorer/structs.go @@ -1,6 +1,7 @@ package explorer import ( + "encoding/hex" "math/big" "strconv" @@ -72,5 +73,6 @@ func GetTransaction(tx *types.Transaction, accountBlock *types.Block) *Transacti To: msg.To().Hex(), Value: msg.Value(), Bytes: strconv.Itoa(int(tx.Size())), + Data: hex.EncodeToString(tx.Data()), } }