Skip to content

Commit

Permalink
rpc: set from. Closes ethereum#742
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Apr 18, 2015
1 parent 2c2ddcb commit 89fd752
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpc/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ func (args *CallArgs) UnmarshalJSON(b []byte) (err error) {
return NewDecodeParamError(err.Error())
}

args.From = ext.From

if len(ext.To) == 0 {
return NewValidationError("to", "is required")
}
Expand Down

0 comments on commit 89fd752

Please sign in to comment.