diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-08-03 14:37:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-03 14:37:57 +0800 |
commit | d56fa8a659be164d3df792963351e573866c6597 (patch) | |
tree | 0be67850fa7ddc64730e88d92b7d3b6588ab3bd6 | |
parent | 0ab54de1a5e4736b7eafb240d5abba09f43a3034 (diff) | |
parent | e4cb158d01499bc4bb34da2489ad1a0f144f7502 (diff) | |
download | dexon-d56fa8a659be164d3df792963351e573866c6597.tar dexon-d56fa8a659be164d3df792963351e573866c6597.tar.gz dexon-d56fa8a659be164d3df792963351e573866c6597.tar.bz2 dexon-d56fa8a659be164d3df792963351e573866c6597.tar.lz dexon-d56fa8a659be164d3df792963351e573866c6597.tar.xz dexon-d56fa8a659be164d3df792963351e573866c6597.tar.zst dexon-d56fa8a659be164d3df792963351e573866c6597.zip |
Merge pull request #17310 from karalabe/mobile-nil-panic
mobile: fix missing return for CallMsg.SetTo(nil)
-rw-r--r-- | mobile/ethereum.go | 1 |
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 } |