Add support for CodeAt

This commit is contained in:
Taylor Gerring
2015-01-13 09:27:36 -06:00
parent b178414a47
commit 961e4da7d8
3 changed files with 58 additions and 2 deletions

View File

@ -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 {