chore(all)!: use gogoproto/any instead of codec/types/any (#21013)
This commit is contained in:
@@ -4,15 +4,15 @@ import (
|
||||
"context"
|
||||
"strings"
|
||||
|
||||
"cosmossdk.io/server/v2/cometbft/client/rpc"
|
||||
abci "github.com/cometbft/cometbft/api/cometbft/abci/v1"
|
||||
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
||||
gogogrpc "github.com/cosmos/gogoproto/grpc"
|
||||
gogoprotoany "github.com/cosmos/gogoproto/types/any"
|
||||
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"cosmossdk.io/server/v2/cometbft/client/rpc"
|
||||
|
||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
|
||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
_ ServiceServer = queryServer{}
|
||||
_ codectypes.UnpackInterfacesMessage = &GetLatestValidatorSetResponse{}
|
||||
_ ServiceServer = queryServer{}
|
||||
_ gogoprotoany.UnpackInterfacesMessage = &GetLatestValidatorSetResponse{}
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -136,7 +136,7 @@ func (s queryServer) GetLatestValidatorSet(
|
||||
return ValidatorsOutput(ctx, s.client, nil, page, limit)
|
||||
}
|
||||
|
||||
func (m *GetLatestValidatorSetResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
|
||||
func (m *GetLatestValidatorSetResponse) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
|
||||
var pubKey cryptotypes.PubKey
|
||||
for _, val := range m.Validators {
|
||||
err := unpacker.UnpackAny(val.PubKey, &pubKey)
|
||||
|
||||
Reference in New Issue
Block a user