diff --git a/x/crosschain/types/tx_body_verification.go b/x/crosschain/types/tx_body_verification.go index e0b62e83dc..6fdf47e834 100644 --- a/x/crosschain/types/tx_body_verification.go +++ b/x/crosschain/types/tx_body_verification.go @@ -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" @@ -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") }