Skip to content

Commit e4232c1

Browse files
rjl493456442karalabe
authored andcommitted
ineternal/ethapi: wrap block size with hex.Uint64 (#19885)
1 parent 389bd75 commit e4232c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ethapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ func RPCMarshalHeader(head *types.Header) map[string]interface{} {
991991
// transaction hashes.
992992
func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool) (map[string]interface{}, error) {
993993
fields := RPCMarshalHeader(block.Header())
994-
fields["size"] = block.Size()
994+
fields["size"] = hexutil.Uint64(block.Size())
995995

996996
if inclTx {
997997
formatTx := func(tx *types.Transaction) (interface{}, error) {

0 commit comments

Comments
 (0)