mobile: fix missing return for CallMsg.SetTo(nil)

This commit is contained in:
Péter Szilágyi 2018-08-03 08:42:31 +03:00
parent 0ab54de1a5
commit e4cb158d01
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D

View File

@ -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
}