Unverified Commit d56fa8a6 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

Merge pull request #17310 from karalabe/mobile-nil-panic

mobile: fix missing return for CallMsg.SetTo(nil)
parents 0ab54de1 e4cb158d
......@@ -67,6 +67,7 @@ func (msg *CallMsg) SetData(data []byte) { msg.msg.Data = common.CopyBytes
func (msg *CallMsg) SetTo(address *Address) {
if address == nil {
msg.msg.To = nil
return
}
msg.msg.To = &address.address
}
......
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