Skip to content

Commit

Permalink
Make build
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Nov 1, 2022
1 parent a88e916 commit 8227d0e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@ func (k Keeper) QueryConsumerChainValidatorKeyMapping(goCtx context.Context, req
}

return &types.QueryConsumerChainValidatorKeyMappingResponse{
ConsumerValidatorPubkey: pubKeyAny,
ConsumerValidatorPubKey: pubKeyAny,
}, nil
}
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func TestGRPCQueryConsumerChainValidatorKeyMapping(t *testing.T) {
require.NoError(t, err, "valid case returned error")
consumerValidatorPubKeyAnyExpect, err := codectypes.NewAnyWithValue(consumerSdkPubKeyExpect)
require.NoError(t, err, "faulty test")
require.Equal(t, consumerValidatorPubKeyAnyExpect.Value, res.ConsumerValidatorPubkey.Value)
require.Equal(t, consumerValidatorPubKeyAnyExpect.Value, res.ConsumerValidatorPubKey.Value)
}

ctrl.Finish()
Expand Down
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (k msgServer) DesignateConsensusKeyForConsumerChain(goCtx context.Context,
return nil, err
}

consumerSDKPublicKey, ok := msg.ConsumerValidatorPubkey.GetCachedValue().(cryptotypes.PubKey)
consumerSDKPublicKey, ok := msg.ConsumerValidatorPubKey.GetCachedValue().(cryptotypes.PubKey)
if !ok {
return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidType, "Expecting cryptotypes.PubKey, got %T", consumerSDKPublicKey)
}
Expand Down
4 changes: 2 additions & 2 deletions x/ccv/provider/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewMsgDesignateConsensusKeyForConsumerChain(chainID string, providerValidat
return &MsgDesignateConsensusKeyForConsumerChain{
ChainId: chainID,
ProviderValidatorAddress: providerValidatorAddress.String(),
ConsumerValidatorPubkey: pubKeyAny,
ConsumerValidatorPubKey: pubKeyAny,
}, nil
}

Expand Down Expand Up @@ -70,7 +70,7 @@ func (msg MsgDesignateConsensusKeyForConsumerChain) ValidateBasic() error {
if msg.ProviderValidatorAddress == "" {
return ErrEmptyValidatorAddr
}
if msg.ConsumerValidatorPubkey == nil {
if msg.ConsumerValidatorPubKey == nil {
return ErrEmptyValidatorPubKey
}
return nil
Expand Down

0 comments on commit 8227d0e

Please sign in to comment.