diff options
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 } |