save data field (#629)

pull/621/head
Richard Liu 6 years ago committed by GitHub
parent 3d3702824f
commit 4dc28f03d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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()),
}
}

Loading…
Cancel
Save