aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-29 07:24:00 +0800
committerobscuren <geffobscura@gmail.com>2015-01-29 07:24:18 +0800
commitec85458612e1d5374767f87005dd0ad5934f74d5 (patch)
treea7e11798765bd56eb088259f2ab4401ec87e4f24 /rpc/args.go
parent73dcbf7ba23ea4d4d87d4261ff7ebaecfe0ec810 (diff)
downloaddexon-ec85458612e1d5374767f87005dd0ad5934f74d5.tar
dexon-ec85458612e1d5374767f87005dd0ad5934f74d5.tar.gz
dexon-ec85458612e1d5374767f87005dd0ad5934f74d5.tar.bz2
dexon-ec85458612e1d5374767f87005dd0ad5934f74d5.tar.lz
dexon-ec85458612e1d5374767f87005dd0ad5934f74d5.tar.xz
dexon-ec85458612e1d5374767f87005dd0ad5934f74d5.tar.zst
dexon-ec85458612e1d5374767f87005dd0ad5934f74d5.zip
updated ethereum.js and moved to subfolder
* Previous subtree caused a lot of trouble * Implemented sha3 in our shiny new http JSON RPC
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/rpc/args.go b/rpc/args.go
index 8b01cc191..bebd79eb9 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -216,3 +216,14 @@ func (a *GetCodeAtArgs) requirements() error {
}
return nil
}
+
+type Sha3Args struct {
+ Data string
+}
+
+func (obj *Sha3Args) UnmarshalJSON(b []byte) (err error) {
+ if err = json.Unmarshal(b, &obj.Data); err != nil {
+ return NewErrorResponse(ErrorDecodeArgs)
+ }
+ return
+}