aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 08:04:02 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 08:04:02 +0800
commit152b37ee116db8faa4d6dbc254336ba1fa7e94ab (patch)
tree13452ca96e39b1734a8ff4ca7af23a37d445f33e /rpc/api.go
parente530c960a4b334815b3c9563b8b0b6809c082548 (diff)
downloadgo-tangerine-152b37ee116db8faa4d6dbc254336ba1fa7e94ab.tar
go-tangerine-152b37ee116db8faa4d6dbc254336ba1fa7e94ab.tar.gz
go-tangerine-152b37ee116db8faa4d6dbc254336ba1fa7e94ab.tar.bz2
go-tangerine-152b37ee116db8faa4d6dbc254336ba1fa7e94ab.tar.lz
go-tangerine-152b37ee116db8faa4d6dbc254336ba1fa7e94ab.tar.xz
go-tangerine-152b37ee116db8faa4d6dbc254336ba1fa7e94ab.tar.zst
go-tangerine-152b37ee116db8faa4d6dbc254336ba1fa7e94ab.zip
inline GetData
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go13
1 files changed, 4 insertions, 9 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 820bb23b0..f8ba82276 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -303,14 +303,6 @@ func (p *EthereumApi) GetStorageAt(args *GetStorageAtArgs, reply *interface{}) e
return nil
}
-func (p *EthereumApi) GetData(args *GetDataArgs, reply *interface{}) error {
- if err := args.requirements(); err != nil {
- return err
- }
- *reply = p.xethWithStateNum(args.BlockNumber).CodeAt(args.Address)
- return nil
-}
-
func (p *EthereumApi) GetCompilers(reply *interface{}) error {
c := []string{""}
*reply = c
@@ -565,7 +557,10 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
- return p.GetData(args, reply)
+ if err := args.requirements(); err != nil {
+ return err
+ }
+ *reply = p.xethWithStateNum(args.BlockNumber).CodeAt(args.Address)
case "eth_sendTransaction", "eth_transact":
args := new(NewTxArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {