eth_getStorageAt output hex should begin with 0x

This commit is contained in:
Taylor Gerring 2015-03-28 21:27:50 +01:00
parent 3b20603eb1
commit 29930da522
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
state := api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address)
value := state.StorageString(args.Key)
*reply = common.Bytes2Hex(value.Bytes())
*reply = common.ToHex(value.Bytes())
case "eth_getTransactionCount":
args := new(GetTxCountArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {