diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-02 19:55:53 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-02 19:55:53 +0800 |
commit | 015453f5b3f5b78ac8f432aed2247c839a6e5049 (patch) | |
tree | 154d7d13efb2a39253a80b7d4979251ba0172ede /rpc/args.go | |
parent | 118ad22ee59658ec8ff476999e48d9bffb0c7db6 (diff) | |
download | dexon-015453f5b3f5b78ac8f432aed2247c839a6e5049.tar.gz dexon-015453f5b3f5b78ac8f432aed2247c839a6e5049.tar.zst dexon-015453f5b3f5b78ac8f432aed2247c839a6e5049.zip |
Default Value to 0 for NewTxArgs
Diffstat (limited to 'rpc/args.go')
-rw-r--r-- | rpc/args.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |