aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 19:38:12 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 19:38:12 +0800
commit81de8ed0912f767b2e3104aaad5c7f31920aaf2a (patch)
tree9da458d4863a70cdc9d66f17990bb625f99da427 /rpc
parentb86450aaae361ef183928b2de53e3724d3e174a8 (diff)
downloadgo-tangerine-81de8ed0912f767b2e3104aaad5c7f31920aaf2a.tar.gz
go-tangerine-81de8ed0912f767b2e3104aaad5c7f31920aaf2a.tar.zst
go-tangerine-81de8ed0912f767b2e3104aaad5c7f31920aaf2a.zip
Format code as hexdata
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 20299bef1..b554dc16b 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -146,7 +146,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
- *reply = api.xethAtStateNum(args.BlockNumber).CodeAt(args.Address)
+ v := api.xethAtStateNum(args.BlockNumber).CodeAtBytes(args.Address)
+ *reply = newHexData(v)
case "eth_sendTransaction", "eth_transact":
args := new(NewTxArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {