Skip to content

Commit

Permalink
chore: use btcsuite/btcd/btcec/v2 in x/crosschain/types (#2804)
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera authored Sep 3, 2024
1 parent cfdf6ad commit 74f1ab5
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])
if err != nil {
return fmt.Errorf("failed to parse public key")
}
Expand Down

0 comments on commit 74f1ab5

Please sign in to comment.