feat: Update Cosmos SDK to CometBFT v2 (#24837)
Co-authored-by: aljo242 <alex@interchainlabs.io>
This commit is contained in:
co-authored by
aljo242
parent
b78a6c660e
commit
fd170b5140
@@ -1,9 +1,9 @@
|
||||
package mock
|
||||
|
||||
import (
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
"github.com/cometbft/cometbft/crypto"
|
||||
cmttypes "github.com/cometbft/cometbft/types"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
"github.com/cometbft/cometbft/v2/crypto"
|
||||
cmttypes "github.com/cometbft/cometbft/v2/types"
|
||||
|
||||
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
|
||||
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
|
||||
@@ -36,7 +36,7 @@ func (pv PV) SignVote(chainID string, vote *cmtproto.Vote, signExtension bool) e
|
||||
}
|
||||
vote.Signature = sig
|
||||
if signExtension {
|
||||
extSignBytes := cmttypes.VoteExtensionSignBytes(chainID, vote)
|
||||
extSignBytes, _ := cmttypes.VoteExtensionSignBytes(chainID, vote)
|
||||
extSig, err := pv.PrivKey.Sign(extSignBytes)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -3,7 +3,7 @@ package mock
|
||||
import (
|
||||
"testing"
|
||||
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
|
||||
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v2"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
reflect "reflect"
|
||||
|
||||
appmodule "cosmossdk.io/core/appmodule"
|
||||
types "github.com/cometbft/cometbft/abci/types"
|
||||
types "github.com/cometbft/cometbft/v2/abci/types"
|
||||
client "github.com/cosmos/cosmos-sdk/client"
|
||||
codec "github.com/cosmos/cosmos-sdk/codec"
|
||||
types0 "github.com/cosmos/cosmos-sdk/codec/types"
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
json "encoding/json"
|
||||
reflect "reflect"
|
||||
|
||||
types "github.com/cometbft/cometbft/abci/types"
|
||||
types "github.com/cometbft/cometbft/v2/abci/types"
|
||||
client "github.com/cosmos/cosmos-sdk/client"
|
||||
codec "github.com/cosmos/cosmos-sdk/codec"
|
||||
types0 "github.com/cosmos/cosmos-sdk/codec/types"
|
||||
|
||||
Reference in New Issue
Block a user