mirror of https://github.com/poanetwork/quorum.git
Merge pull request #17310 from karalabe/mobile-nil-panic
mobile: fix missing return for CallMsg.SetTo(nil)
This commit is contained in:
commit
d56fa8a659
|
@ -67,6 +67,7 @@ func (msg *CallMsg) SetData(data []byte) { msg.msg.Data = common.CopyBytes
|
||||||
func (msg *CallMsg) SetTo(address *Address) {
|
func (msg *CallMsg) SetTo(address *Address) {
|
||||||
if address == nil {
|
if address == nil {
|
||||||
msg.msg.To = nil
|
msg.msg.To = nil
|
||||||
|
return
|
||||||
}
|
}
|
||||||
msg.msg.To = &address.address
|
msg.msg.To = &address.address
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue