diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 10:58:07 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 10:58:07 +0800 |
commit | 6c04c19eb4506efa5f6de47561025b3702619f79 (patch) | |
tree | 818a43ff93dc06c7a5c04355516b0d67d6ecd1c5 /rpc/args.go | |
parent | 12d87226a74d3c4095ea8e189c30ff31fcadf59f (diff) | |
download | dexon-6c04c19eb4506efa5f6de47561025b3702619f79.tar.gz dexon-6c04c19eb4506efa5f6de47561025b3702619f79.tar.zst dexon-6c04c19eb4506efa5f6de47561025b3702619f79.zip |
Reorg filter logic to XEth
Diffstat (limited to 'rpc/args.go')
-rw-r--r-- | rpc/args.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rpc/args.go b/rpc/args.go index ab1c40585..bd6be5a0f 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -609,6 +609,16 @@ func (args *FilterStringArgs) UnmarshalJSON(b []byte) (err error) { return nil } +func (args *FilterStringArgs) requirements() error { + switch args.Word { + case "latest", "pending": + break + default: + return NewValidationError("Word", "Must be `latest` or `pending`") + } + return nil +} + type FilterIdArgs struct { Id int } |