Skip to content

Commit

Permalink
chore: use btcsuite/btcd/btcec/v2 in x/crosschain/types
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Aug 30, 2024
1 parent b516a46 commit c651f5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/crosschain/types/tx_body_verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"math/big"

"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcutil"
eth "github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"

Expand Down Expand Up @@ -136,7 +136,7 @@ func verifyOutboundBodyBTC(msg MsgAddOutboundTracker, txBytes []byte, tssBtc str
if len(vin.Witness) != 2 { // outTx is SegWit transaction for now
return fmt.Errorf("not a SegWit transaction")
}
pubKey, err := btcec.ParsePubKey(vin.Witness[1], btcec.S256())
pubKey, err := btcec.ParsePubKey(vin.Witness[1])

Check warning on line 139 in x/crosschain/types/tx_body_verification.go

View check run for this annotation

Codecov / codecov/patch

x/crosschain/types/tx_body_verification.go#L139

Added line #L139 was not covered by tests
if err != nil {
return fmt.Errorf("failed to parse public key")
}
Expand Down

0 comments on commit c651f5d

Please sign in to comment.