Skip to content

Commit

Permalink
Minor fixes for Nano Ledger support
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyilong committed May 6, 2019
1 parent 481559a commit 03a024b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet/coldwallet/keystore/nano_ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func (w *ledgerDriver) ledgerExchange(opcode ledgerOpcode, p1 ledgerParam1, p2 l
}
}
if len(reply) == 0 {
return w.ledgerExchange(opcode, p1, p2, data)
return nil, fmt.Errorf("Reply is empty")
}
return reply[:len(reply)-2], nil
}

0 comments on commit 03a024b

Please sign in to comment.