Commit 89fd7526 authored by obscuren's avatar obscuren

rpc: set from. Closes #742

parent 2c2ddcbf
...@@ -279,6 +279,8 @@ func (args *CallArgs) UnmarshalJSON(b []byte) (err error) { ...@@ -279,6 +279,8 @@ func (args *CallArgs) UnmarshalJSON(b []byte) (err error) {
return NewDecodeParamError(err.Error()) return NewDecodeParamError(err.Error())
} }
args.From = ext.From
if len(ext.To) == 0 { if len(ext.To) == 0 {
return NewValidationError("to", "is required") return NewValidationError("to", "is required")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment