Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
mobile: fix missing return for CallMsg.SetTo(nil)
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Aug 3, 2018
1 parent 0ab54de commit e4cb158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mobile/ethereum.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e4cb158

Please sign in to comment.