Skip to content

Commit

Permalink
fix(account): Fix crash when using Ledger secp256k1 on consensus
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed May 30, 2023
1 parent 9c75f75 commit c875f50
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wallet/ledger/ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,12 @@ func newAccount(cfg *accountConfig) (wallet.Account, error) {
}

func (a *ledgerAccount) ConsensusSigner() coreSignature.Signer {
return a.coreSigner
switch a.cfg.Algorithm {
case wallet.AlgorithmEd25519Adr8, wallet.AlgorithmEd25519Legacy:
return a.coreSigner
}

return nil
}

func (a *ledgerAccount) Signer() signature.Signer {
Expand Down

0 comments on commit c875f50

Please sign in to comment.