aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2019-07-25 14:25:16 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-07-25 14:25:16 +0800
commite4232c153ba93a71a3e39a74dbe5f1d7c1ad46ac (patch)
tree4b6cd80b3764990756785274111c5c04315aed5c
parent389bd75142eaf7585d5c104add26b6a3b153f8ad (diff)
downloadgo-tangerine-e4232c153ba93a71a3e39a74dbe5f1d7c1ad46ac.tar
go-tangerine-e4232c153ba93a71a3e39a74dbe5f1d7c1ad46ac.tar.gz
go-tangerine-e4232c153ba93a71a3e39a74dbe5f1d7c1ad46ac.tar.bz2
go-tangerine-e4232c153ba93a71a3e39a74dbe5f1d7c1ad46ac.tar.lz
go-tangerine-e4232c153ba93a71a3e39a74dbe5f1d7c1ad46ac.tar.xz
go-tangerine-e4232c153ba93a71a3e39a74dbe5f1d7c1ad46ac.tar.zst
go-tangerine-e4232c153ba93a71a3e39a74dbe5f1d7c1ad46ac.zip
ineternal/ethapi: wrap block size with hex.Uint64 (#19885)
-rw-r--r--internal/ethapi/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go
index 8b0489e7a..8e1cebeeb 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -991,7 +991,7 @@ func RPCMarshalHeader(head *types.Header) map[string]interface{} {
// transaction hashes.
func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool) (map[string]interface{}, error) {
fields := RPCMarshalHeader(block.Header())
- fields["size"] = block.Size()
+ fields["size"] = hexutil.Uint64(block.Size())
if inclTx {
formatTx := func(tx *types.Transaction) (interface{}, error) {