From 015453f5b3f5b78ac8f432aed2247c839a6e5049 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Thu, 2 Apr 2015 13:55:53 +0200 Subject: Default Value to 0 for NewTxArgs --- rpc/args.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpc/args.go') diff --git a/rpc/args.go b/rpc/args.go index b43c465c0..df57e69c4 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -198,7 +198,7 @@ func (args *NewTxArgs) UnmarshalJSON(b []byte) (err error) { var num int64 if ext.Value == nil { - return NewValidationError("value", "is required") + num = 0 } else { if err := numString(ext.Value, &num); err != nil { return err -- cgit v1.2.3