diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-13 23:37:08 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-13 23:37:08 +0800 |
commit | a81d835e4d27f600fac31f74d938d0b6502c3072 (patch) | |
tree | 1b7a4a4e5f6da29e03f248acef8679847c00ed9b /rpc/packages.go | |
parent | 961e4da7d885a6d5d00fc7c3ab2e11c80c9eeecc (diff) | |
download | dexon-a81d835e4d27f600fac31f74d938d0b6502c3072.tar.gz dexon-a81d835e4d27f600fac31f74d938d0b6502c3072.tar.zst dexon-a81d835e4d27f600fac31f74d938d0b6502c3072.zip |
cleanup
Diffstat (limited to 'rpc/packages.go')
-rw-r--r-- | rpc/packages.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rpc/packages.go b/rpc/packages.go index 4e6016b9e..e5ed995e7 100644 --- a/rpc/packages.go +++ b/rpc/packages.go @@ -20,7 +20,7 @@ For each request type, define the following: 1. RpcRequest "To" method [message.go], which does basic validation and conversion to "Args" type via json.Decoder() 2. json.Decoder() calls "UnmarshalJSON" defined on each "Args" struct -3. EthereumApi "Get" method, taking the "Args" type and replying with an interface to be marshalled to JSON +3. EthereumApi method, taking the "Args" type and replying with an interface to be marshalled to JSON */ package rpc @@ -173,7 +173,7 @@ func (obj *GetBlockArgs) UnmarshalJSON(b []byte) (err error) { obj.Hash = argstr return } - return NewErrorResponse("Could not determine JSON parameters") + return NewErrorResponse(ErrorDecodeArgs) } func (obj *GetBlockArgs) requirements() error { @@ -334,6 +334,7 @@ type BalanceRes struct { Balance string `json:"balance"` Address string `json:"address"` } + type GetCodeAtArgs struct { Address string } |