diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-13 23:27:36 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-13 23:27:36 +0800 |
commit | 961e4da7d885a6d5d00fc7c3ab2e11c80c9eeecc (patch) | |
tree | fa9deabbbce89ad263a996cc5bd4cf5893bf38e5 /rpc/json.go | |
parent | b178414a475aa48764622487223237a7d28edd46 (diff) | |
download | go-tangerine-961e4da7d885a6d5d00fc7c3ab2e11c80c9eeecc.tar go-tangerine-961e4da7d885a6d5d00fc7c3ab2e11c80c9eeecc.tar.gz go-tangerine-961e4da7d885a6d5d00fc7c3ab2e11c80c9eeecc.tar.bz2 go-tangerine-961e4da7d885a6d5d00fc7c3ab2e11c80c9eeecc.tar.lz go-tangerine-961e4da7d885a6d5d00fc7c3ab2e11c80c9eeecc.tar.xz go-tangerine-961e4da7d885a6d5d00fc7c3ab2e11c80c9eeecc.tar.zst go-tangerine-961e4da7d885a6d5d00fc7c3ab2e11c80c9eeecc.zip |
Add support for CodeAt
Diffstat (limited to 'rpc/json.go')
-rw-r--r-- | rpc/json.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rpc/json.go b/rpc/json.go index 8c2a672e3..2e6ef2c2b 100644 --- a/rpc/json.go +++ b/rpc/json.go @@ -72,8 +72,12 @@ func (self jsonWrapper) GetRequestReply(xeth *EthereumApi, req *RpcRequest, repl return err } return xeth.GetTxCountAt(args, reply) - // case "eth_codeAt": - // return nil + case "eth_codeAt": + args, err := req.ToGetCodeAtArgs() + if err != nil { + return err + } + return xeth.GetCodeAt(args, reply) case "eth_balanceAt": args, err := req.ToGetBalanceArgs() if err != nil { |