Default gas price and default gas for rpc

This commit is contained in:
obscuren
2015-02-04 18:34:29 -08:00
parent a1b4547a53
commit db7c34a9df
4 changed files with 15 additions and 18 deletions

View File

@ -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"`
}