Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrit committed Oct 22, 2024
1 parent 9f0eff1 commit ca6baf8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x/axelarcork/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (k Keeper) EndBlocker(ctx sdk.Context) {
sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
sdk.NewAttribute(types.AttributeKeyCork, c.String()),
sdk.NewAttribute(types.AttributeKeyBlockHeight, fmt.Sprintf("%d", ctx.BlockHeight())),
sdk.NewAttribute(types.AttributeKeyCorkId, hex.EncodeToString(c.IDHash(uint64(ctx.BlockHeight())))),
sdk.NewAttribute(types.AttributeKeyCorkID, hex.EncodeToString(c.IDHash(uint64(ctx.BlockHeight())))),
),
},
)
Expand Down
2 changes: 1 addition & 1 deletion x/axelarcork/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const (

AttributeKeyCork = "cork"
AttributeKeyBlockHeight = "block_height"
AttributeKeyCorkId = "cork_id"
AttributeKeyCorkID = "cork_id"

AttributeValueCategory = ModuleName
)
2 changes: 1 addition & 1 deletion x/cork/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (k Keeper) submitContractCall(ctx sdk.Context, cork v2types.Cork) {
sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
sdk.NewAttribute(types.AttributeKeyCork, cork.String()),
sdk.NewAttribute(types.AttributeKeyBlockHeight, fmt.Sprintf("%d", ctx.BlockHeight())),
sdk.NewAttribute(types.AttributeKeyCorkId, hex.EncodeToString(cork.IDHash(uint64(ctx.BlockHeight())))),
sdk.NewAttribute(types.AttributeKeyCorkID, hex.EncodeToString(cork.IDHash(uint64(ctx.BlockHeight())))),
sdk.NewAttribute(gravitytypes.AttributeKeyContractCallInvalidationScope, fmt.Sprint(invalidationScope)),
sdk.NewAttribute(gravitytypes.AttributeKeyContractCallInvalidationNonce, fmt.Sprint(invalidationNonce)),
),
Expand Down
2 changes: 1 addition & 1 deletion x/cork/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (k Keeper) ScheduleCork(c context.Context, msg *types.MsgScheduleCorkReques
sdk.NewAttribute(corktypes.AttributeKeyValidator, validatorAddr.String()),
sdk.NewAttribute(corktypes.AttributeKeyCork, msg.Cork.String()),
sdk.NewAttribute(corktypes.AttributeKeyBlockHeight, fmt.Sprintf("%d", msg.BlockHeight)),
sdk.NewAttribute(corktypes.AttributeKeyCorkId, hex.EncodeToString(corkID)),
sdk.NewAttribute(corktypes.AttributeKeyCorkID, hex.EncodeToString(corkID)),
sdk.NewAttribute(gravitytypes.AttributeKeyContractCallInvalidationScope, fmt.Sprint(invalidationScope)),
sdk.NewAttribute(gravitytypes.AttributeKeyContractCallInvalidationNonce, fmt.Sprint(invalidationNonce)),
),
Expand Down
2 changes: 1 addition & 1 deletion x/cork/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
AttributeKeyCommitPeriodStart = "commit_period_start"
AttributeKeyCommitPeriodEnd = "commit_period_end"
AttributeKeyBlockHeight = "block_height"
AttributeKeyCorkId = "cork_id"
AttributeKeyCorkID = "cork_id"

AttributeValueCategory = ModuleName
)

0 comments on commit ca6baf8

Please sign in to comment.