Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 511d4f5

Browse files
committed
forgot to hex the number params in result
1 parent 69ecbc9 commit 511d4f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/ethapi/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,10 +1407,10 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param
14071407
// for use with mevgeth++ custom rpc functions for efficient block data fetching
14081408
func RPCMarshalMinimalBlock(block *types.Block) map[string]interface{} {
14091409
return map[string]interface{}{
1410-
"number": block.Number(),
1410+
"number": (*hexutil.Big)(block.Number()),
14111411
"hash": block.Hash(),
14121412
"parentHash": block.ParentHash(),
1413-
"difficulty": block.Difficulty(),
1413+
"difficulty": (*hexutil.Big)(block.Difficulty()),
14141414
}
14151415
}
14161416

0 commit comments

Comments
 (0)