diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-02 20:05:14 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-02 20:05:14 +0800 |
commit | b4eef59b6f9631d22fdf62a2b1a40fe05209fccd (patch) | |
tree | 46b2505b306b7eddaac76ca08abb018454c9d0a8 /rpc/args.go | |
parent | 015453f5b3f5b78ac8f432aed2247c839a6e5049 (diff) | |
download | go-tangerine-b4eef59b6f9631d22fdf62a2b1a40fe05209fccd.tar go-tangerine-b4eef59b6f9631d22fdf62a2b1a40fe05209fccd.tar.gz go-tangerine-b4eef59b6f9631d22fdf62a2b1a40fe05209fccd.tar.bz2 go-tangerine-b4eef59b6f9631d22fdf62a2b1a40fe05209fccd.tar.lz go-tangerine-b4eef59b6f9631d22fdf62a2b1a40fe05209fccd.tar.xz go-tangerine-b4eef59b6f9631d22fdf62a2b1a40fe05209fccd.tar.zst go-tangerine-b4eef59b6f9631d22fdf62a2b1a40fe05209fccd.zip |
No longer require gas & gas price in transactions
Defaults to 0, which is then set to default values in XEth
Diffstat (limited to 'rpc/args.go')
-rw-r--r-- | rpc/args.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/args.go b/rpc/args.go index df57e69c4..70618a01a 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -207,7 +207,7 @@ func (args *NewTxArgs) UnmarshalJSON(b []byte) (err error) { args.Value = big.NewInt(num) if ext.Gas == nil { - return NewValidationError("gas", "is required") + num = 0 } else { if err := numString(ext.Gas, &num); err != nil { return err @@ -216,7 +216,7 @@ func (args *NewTxArgs) UnmarshalJSON(b []byte) (err error) { args.Gas = big.NewInt(num) if ext.GasPrice == nil { - return NewValidationError("gasprice", "is required") + num = 0 } else { if err := numString(ext.GasPrice, &num); err != nil { return err |