aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-29 21:03:39 +0800
committerobscuren <geffobscura@gmail.com>2015-03-29 21:03:39 +0800
commite1c6c01b4d598f9b7f7ee31326d25903084fc292 (patch)
tree99d7fa0c5b905df134b0b373316e4a08c17b29c7 /rpc/api.go
parentb7a0bc70313597ada37cc1a348bbd0d39696ec6e (diff)
parent391d79ef44ad2e76754ef8dfb5e9dfbdd5a69acd (diff)
downloaddexon-e1c6c01b4d598f9b7f7ee31326d25903084fc292.tar
dexon-e1c6c01b4d598f9b7f7ee31326d25903084fc292.tar.gz
dexon-e1c6c01b4d598f9b7f7ee31326d25903084fc292.tar.bz2
dexon-e1c6c01b4d598f9b7f7ee31326d25903084fc292.tar.lz
dexon-e1c6c01b4d598f9b7f7ee31326d25903084fc292.tar.xz
dexon-e1c6c01b4d598f9b7f7ee31326d25903084fc292.tar.zst
dexon-e1c6c01b4d598f9b7f7ee31326d25903084fc292.zip
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 78e464c99..502079177 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -13,7 +13,6 @@ import (
type EthereumApi struct {
eth *xeth.XEth
xethMu sync.RWMutex
- db common.Database
}
func NewEthereumApi(xeth *xeth.XEth) *EthereumApi {
@@ -99,7 +98,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 {