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

mobile: fix missing return for CallMsg.SetTo(nil)
pull/17311/head
Péter Szilágyi 6 years ago committed by GitHub
commit d56fa8a659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      mobile/ethereum.go

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

Loading…
Cancel
Save