Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnss committed Jul 3, 2023
1 parent 031dd6f commit 5371e6c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 100 deletions.
92 changes: 0 additions & 92 deletions testutil/network/network.go

This file was deleted.

6 changes: 1 addition & 5 deletions x/storage/module_simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ var (
)

const (
opWeightMsgCancelMigrateBucket = "op_weight_msg_cancel_migrate_bucket"
// TODO: Determine the simulation weight value
defaultWeightMsgCancelMigrateBucket int = 100

// this line is used by starport scaffolding # simapp/module/const
// this line is used by starport scaffolding # simapp/module/const
)

// GenerateGenesisState creates a randomized GenState of the module
Expand Down
2 changes: 1 addition & 1 deletion x/storage/types/message_cancel_migrate_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (msg *MsgCancelMigrateBucket) GetSignBytes() []byte {
func (msg *MsgCancelMigrateBucket) ValidateBasic() error {
_, err := sdk.AccAddressFromHexUnsafe(msg.Operator)
if err != nil {
return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err)
return sdkerrors.ErrInvalidAddress.Wrapf("invalid creator address (%s)", err)
}

err = s3util.CheckValidBucketName(msg.BucketName)
Expand Down
6 changes: 4 additions & 2 deletions x/storage/types/message_cancel_migrate_bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ func TestMsgCancelMigrateBucket_ValidateBasic(t *testing.T) {
{
name: "invalid address",
msg: MsgCancelMigrateBucket{
Creator: "invalid_address",
Operator: "invalid_address",
BucketName: testBucketName,
},
err: sdkerrors.ErrInvalidAddress,
}, {
name: "valid address",
msg: MsgCancelMigrateBucket{
Creator: sample.AccAddress(),
Operator: sample.AccAddress(),
BucketName: testBucketName,
},
},
}
Expand Down

0 comments on commit 5371e6c

Please sign in to comment.