Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use btcsuite/btcd/btcec/v2 in x/crosschain/types #2804

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
"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 @@
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
gartnera marked this conversation as resolved.
Show resolved Hide resolved
if err != nil {
return fmt.Errorf("failed to parse public key")
}
Expand Down
Loading