From 9eb1a39fb83a75213f705a1d830fdc913bf44afc Mon Sep 17 00:00:00 2001 From: Richard Liu Date: Sat, 13 Jul 2019 00:59:20 -0700 Subject: [PATCH] fix timestamp marshal --- internal/hmyapi/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/hmyapi/types.go b/internal/hmyapi/types.go index 4d85865ed..ca9a249ef 100644 --- a/internal/hmyapi/types.go +++ b/internal/hmyapi/types.go @@ -105,7 +105,7 @@ func RPCMarshalBlock(b *types.Block, inclTx bool, fullTx bool) (map[string]inter "size": hexutil.Uint64(b.Size()), "gasLimit": hexutil.Uint64(head.GasLimit), "gasUsed": hexutil.Uint64(head.GasUsed), - "timestamp": head.Time, // TODO(ricl): should be hexutil.Uint64 + "timestamp": hexutil.Uint64(head.Time.Uint64()), "transactionsRoot": head.TxHash, "receiptsRoot": head.ReceiptHash, }