Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Jun 9, 2023
1 parent 1697162 commit 1744dac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x/tokenfactory/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func GetDraftDenomMetadataCmd() *cobra.Command {
return err
}

return os.WriteFile(output, bz, 0644)
return os.WriteFile(output, bz, 0600)
},
}

Expand Down
2 changes: 1 addition & 1 deletion x/tokenfactory/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (k msgServer) CreateDenom(goCtx context.Context, msg *types.MsgCreateDenom)
types.EventTypeCreateDenom,
sdk.NewAttribute(types.AttributeKeySubspaceID, fmt.Sprintf("%d", msg.SubspaceID)),
sdk.NewAttribute(types.AttributeCreator, msg.Sender),
sdk.NewAttribute(types.AttributeNewTokenDenom, denom),
sdk.NewAttribute(types.AttributeNewDenom, denom),
),
})

Expand Down
2 changes: 1 addition & 1 deletion x/tokenfactory/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (suite *KeeperTestSuite) TestMsgServer_CreateDenom() {
types.EventTypeCreateDenom,
sdk.NewAttribute(types.AttributeKeySubspaceID, "1"),
sdk.NewAttribute(types.AttributeCreator, "cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69"),
sdk.NewAttribute(types.AttributeNewTokenDenom, "factory/cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47/uminttoken"),
sdk.NewAttribute(types.AttributeNewDenom, "factory/cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47/uminttoken"),
),
},
},
Expand Down
5 changes: 3 additions & 2 deletions x/tokenfactory/types/events.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package types

// event types
// DONTCOVER

const (
EventTypeCreateDenom = "create_denom"
EventTypeMint = "tf_mint"
Expand All @@ -12,7 +13,7 @@ const (
AttributeAmount = "amount"
AttributeCreator = "creator"
AttributeSubdenom = "subdenom"
AttributeNewTokenDenom = "new_token_denom"
AttributeNewDenom = "new_denom"
AttributeMintToAddress = "mint_to_address"
AttributeBurnFromAddress = "burn_from_address"
AttributeDenom = "denom"
Expand Down

0 comments on commit 1744dac

Please sign in to comment.