diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-05 10:34:29 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-05 10:34:29 +0800 |
commit | db7c34a9df19d5a8a3a02a5e3d4cafcffa18dcb8 (patch) | |
tree | b7b5ea745d208d5222c1562796538acdea32580f /rpc/args.go | |
parent | a1b4547a53c4c738e435c1968c1e606935912e47 (diff) | |
download | go-tangerine-db7c34a9df19d5a8a3a02a5e3d4cafcffa18dcb8.tar go-tangerine-db7c34a9df19d5a8a3a02a5e3d4cafcffa18dcb8.tar.gz go-tangerine-db7c34a9df19d5a8a3a02a5e3d4cafcffa18dcb8.tar.bz2 go-tangerine-db7c34a9df19d5a8a3a02a5e3d4cafcffa18dcb8.tar.lz go-tangerine-db7c34a9df19d5a8a3a02a5e3d4cafcffa18dcb8.tar.xz go-tangerine-db7c34a9df19d5a8a3a02a5e3d4cafcffa18dcb8.tar.zst go-tangerine-db7c34a9df19d5a8a3a02a5e3d4cafcffa18dcb8.zip |
Default gas price and default gas for rpc
Diffstat (limited to 'rpc/args.go')
-rw-r--r-- | rpc/args.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/rpc/args.go b/rpc/args.go index 34e706b98..84b076d4a 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -37,16 +37,6 @@ type NewTxArgs struct { Data string `json:"data"` } -func (a *NewTxArgs) requirements() error { - if a.Gas == "" { - return NewErrorResponse("Transact requires a 'gas' value as argument") - } - if a.GasPrice == "" { - return NewErrorResponse("Transact requires a 'gasprice' value as argument") - } - return nil -} - type PushTxArgs struct { Tx string `json:"tx"` } |