From 03a024b821f37070cbb5f76305849414ef48e846 Mon Sep 17 00:00:00 2001 From: Jieyi Long Date: Mon, 6 May 2019 13:39:06 -0700 Subject: [PATCH] Minor fixes for Nano Ledger support --- wallet/coldwallet/keystore/nano_ledger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/coldwallet/keystore/nano_ledger.go b/wallet/coldwallet/keystore/nano_ledger.go index de6492c8..0782abb7 100644 --- a/wallet/coldwallet/keystore/nano_ledger.go +++ b/wallet/coldwallet/keystore/nano_ledger.go @@ -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 }