aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-08-03 13:42:31 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-03 13:42:31 +0800
commite4cb158d01499bc4bb34da2489ad1a0f144f7502 (patch)
tree0be67850fa7ddc64730e88d92b7d3b6588ab3bd6
parent0ab54de1a5e4736b7eafb240d5abba09f43a3034 (diff)
downloadgo-tangerine-e4cb158d01499bc4bb34da2489ad1a0f144f7502.tar
go-tangerine-e4cb158d01499bc4bb34da2489ad1a0f144f7502.tar.gz
go-tangerine-e4cb158d01499bc4bb34da2489ad1a0f144f7502.tar.bz2
go-tangerine-e4cb158d01499bc4bb34da2489ad1a0f144f7502.tar.lz
go-tangerine-e4cb158d01499bc4bb34da2489ad1a0f144f7502.tar.xz
go-tangerine-e4cb158d01499bc4bb34da2489ad1a0f144f7502.tar.zst
go-tangerine-e4cb158d01499bc4bb34da2489ad1a0f144f7502.zip
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
}