aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-29 04:27:50 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-29 04:27:50 +0800
commit29930da52272b8fd644c38cc303ba6aa66e49182 (patch)
treef61943b5c00c650df50e0c514512f0f974fe500b /rpc
parent3b20603eb1373cab402babd1d3878a96fe7de5a7 (diff)
downloaddexon-29930da52272b8fd644c38cc303ba6aa66e49182.tar
dexon-29930da52272b8fd644c38cc303ba6aa66e49182.tar.gz
dexon-29930da52272b8fd644c38cc303ba6aa66e49182.tar.bz2
dexon-29930da52272b8fd644c38cc303ba6aa66e49182.tar.lz
dexon-29930da52272b8fd644c38cc303ba6aa66e49182.tar.xz
dexon-29930da52272b8fd644c38cc303ba6aa66e49182.tar.zst
dexon-29930da52272b8fd644c38cc303ba6aa66e49182.zip
eth_getStorageAt output hex should begin with 0x
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go2
1 files changed, 1 insertions, 1 deletions
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 {