mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
rpc: set from. Closes #742
This commit is contained in:
parent
2c2ddcbf88
commit
89fd752659
1 changed files with 2 additions and 0 deletions
|
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue