updated ethereum.js and moved to subfolder
* Previous subtree caused a lot of trouble * Implemented sha3 in our shiny new http JSON RPC
This commit is contained in:
11
rpc/args.go
11
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
|
||||
}
|
||||
|
Reference in New Issue
Block a user