aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-08-03 14:37:57 +0800
committerGitHub <noreply@github.com>2018-08-03 14:37:57 +0800
commitd56fa8a659be164d3df792963351e573866c6597 (patch)
tree0be67850fa7ddc64730e88d92b7d3b6588ab3bd6
parent0ab54de1a5e4736b7eafb240d5abba09f43a3034 (diff)
parente4cb158d01499bc4bb34da2489ad1a0f144f7502 (diff)
downloadgo-tangerine-d56fa8a659be164d3df792963351e573866c6597.tar
go-tangerine-d56fa8a659be164d3df792963351e573866c6597.tar.gz
go-tangerine-d56fa8a659be164d3df792963351e573866c6597.tar.bz2
go-tangerine-d56fa8a659be164d3df792963351e573866c6597.tar.lz
go-tangerine-d56fa8a659be164d3df792963351e573866c6597.tar.xz
go-tangerine-d56fa8a659be164d3df792963351e573866c6597.tar.zst
go-tangerine-d56fa8a659be164d3df792963351e573866c6597.zip
Merge pull request #17310 from karalabe/mobile-nil-panic
mobile: fix missing return for CallMsg.SetTo(nil)
-rw-r--r--mobile/ethereum.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile/ethereum.go b/mobile/ethereum.go
index 35a43d274..59da85239 100644
--- a/mobile/ethereum.go
+++ b/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
}