Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
eth_getBlockBy* empty extraData is exported as "0x"
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed Jun 25, 2020
1 parent 64262c7 commit 8fadd48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libweb3jsonrpc/JsonHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Json::Value toJson(dev::eth::BlockHeader const& _bi, SealEngineFace* _sealer)
res["number"] = toJS(_bi.number());
res["gasUsed"] = toJS(_bi.gasUsed());
res["gasLimit"] = toJS(_bi.gasLimit());
res["extraData"] = toJS(_bi.extraData());
res["extraData"] = _bi.extraData().empty() ? "0x" : toJS(_bi.extraData());
res["logsBloom"] = toJS(_bi.logBloom());
res["timestamp"] = toJS(_bi.timestamp());
// TODO: remove once JSONRPC spec is updated to use "author" over "miner".
Expand Down

0 comments on commit 8fadd48

Please sign in to comment.