diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-18 08:32:55 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-18 08:32:55 +0800 |
commit | 89fd752659c5c11b243c30f739781d723cac82c2 (patch) | |
tree | ede54b7c4e2fdbec674bbd610c47dca234d0f35d /rpc | |
parent | 2c2ddcbf8885bf509741105ec57967fe78c744fe (diff) | |
download | dexon-89fd752659c5c11b243c30f739781d723cac82c2.tar.gz dexon-89fd752659c5c11b243c30f739781d723cac82c2.tar.zst dexon-89fd752659c5c11b243c30f739781d723cac82c2.zip |
rpc: set from. Closes #742
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/args.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/args.go b/rpc/args.go index 4bc36f5d9..4b3840285 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -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") } |