diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-19 08:30:09 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-19 08:30:09 +0800 |
commit | 8b20c3cc976a149c64ef0ac2cabbe49e93ba739d (patch) | |
tree | 07ef5356ae58e637d676bc28b3e8659f11bdcbcf /rpc/api.go | |
parent | da427e8843e96bcee5f4eaedde966b0b8cf09520 (diff) | |
download | dexon-8b20c3cc976a149c64ef0ac2cabbe49e93ba739d.tar.gz dexon-8b20c3cc976a149c64ef0ac2cabbe49e93ba739d.tar.zst dexon-8b20c3cc976a149c64ef0ac2cabbe49e93ba739d.zip |
Validate NewTx From field is not blank
Diffstat (limited to 'rpc/api.go')
-rw-r--r-- | rpc/api.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rpc/api.go b/rpc/api.go index 6154a0b28..5d4e235d9 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -257,6 +257,11 @@ func (p *EthereumApi) Transact(args *NewTxArgs, reply *interface{}) (err error) p.register[ags.From] = append(p.register[args.From], args) } */ + + if err := args.requirements(); err != nil { + return err + } + // TODO: align default values to have the same type, e.g. not depend on // common.Value conversions later on if args.Gas.Cmp(big.NewInt(0)) == 0 { |