Skip to content

Commit

Permalink
fix wipe device ref #255
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevAlDen committed Jan 9, 2020
1 parent 95fc516 commit 773ea15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/models/walletsModel.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,14 @@ func (walletModel *WalletModel) wipeDevice() {
msg, err := hardware.SkyWltDeviceInstance().Wipe()
if err != nil {
logWalletsModel.WithError(err).Errorln("unable to wipe device")
return
}
msgStr, err := skyWallet.DecodeSuccessMsg(msg)
if err != nil {
logWalletsModel.WithError(err).Errorln("unable to decode response")
return
}
logWalletsModel.Errorln("msgStr", msgStr)
logWalletsModel.Infoln("msgStr", msgStr)
}

func (walletModel *WalletModel) changePin() {
Expand Down

0 comments on commit 773ea15

Please sign in to comment.