From 29930da52272b8fd644c38cc303ba6aa66e49182 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Sat, 28 Mar 2015 21:27:50 +0100 Subject: eth_getStorageAt output hex should begin with 0x --- rpc/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpc') diff --git a/rpc/api.go b/rpc/api.go index 78e464c99..05c264b6f 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -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 { -- cgit