Removed from as a requirement and changed

Removed the from as a requiremet from the RPC eth_call. Xeth#Call now
also default values to:

1. Supplied account
2. First account if any
3. No managed account => 000000..00
This commit is contained in:
obscuren
2015-04-09 00:44:20 +02:00
parent 204ac81188
commit a9959805e5
3 changed files with 13 additions and 21 deletions

View File

@ -279,11 +279,6 @@ func (args *CallArgs) UnmarshalJSON(b []byte) (err error) {
return NewDecodeParamError(err.Error())
}
if len(ext.From) == 0 {
return NewValidationError("from", "is required")
}
args.From = ext.From
if len(ext.To) == 0 {
return NewValidationError("to", "is required")
}