Skip to content

Commit

Permalink
addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bermuell committed Aug 29, 2024
1 parent 0173c0d commit 525afc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions x/ccv/provider/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Example:

func NewCreateConsumerCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "create-consumer [chain-id] [metadata] [initialization-parameters] [power-shaping-parameters]",
Use: "create-consumer [consumer-parameters]",
Short: "create a consumer chain",
Long: strings.TrimSpace(
fmt.Sprintf(`Create a consumer chain and get the assigned consumer id of this chain.
Expand Down Expand Up @@ -270,7 +270,7 @@ Example:

func NewUpdateConsumerCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "update-consumer [consumer-id] [owner-address] [metadata] [initialization-parameters] [power-shaping-parameters]",
Use: "update-consumer [consumer-parameters]",
Short: "update a consumer chain",
Long: strings.TrimSpace(
fmt.Sprintf(`Update a consumer chain to change its parameters (e.g., spawn time, allow list, etc.).
Expand Down Expand Up @@ -474,7 +474,7 @@ func NewSetConsumerCommissionRateCmd() *cobra.Command {
Long: strings.TrimSpace(
fmt.Sprintf(`Note that the "commission-rate" argument is a fraction and should be in the range [0,1].
Example:
%s set-consumer-commission-rate consumer-1 0.5 --from node0 --home ../node0`,
%s set-consumer-commission-rate 123 0.5 --from node0 --home ../node0`,
version.AppName),
),
Args: cobra.ExactArgs(2),
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 @@ -352,7 +352,7 @@ func (k msgServer) CreateConsumer(goCtx context.Context, msg *types.MsgCreateCon
}

ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(ccvtypes.EventTypeConsumerRegistration,
sdk.NewEvent(ccvtypes.EventTypeConsumerCreation,
sdk.NewAttribute(ccvtypes.AttributeConsumerID, consumerId),
),
})
Expand Down
2 changes: 1 addition & 1 deletion x/ccv/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
EventTypeExecuteConsumerChainSlash = "execute_consumer_chain_slash"
EventTypeFeeDistribution = "fee_distribution"
EventTypeConsumerSlashRequest = "consumer_slash_request"
EventTypeConsumerRegistration = "consumer_registration"
EventTypeConsumerCreation = "consumer_creation"

AttributeKeyAckSuccess = "success"
AttributeKeyAck = "acknowledgement"
Expand Down

0 comments on commit 525afc0

Please sign in to comment.