Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgao001 committed Oct 10, 2023
1 parent 93d721e commit d2da041
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions e2e/core/basesuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ func (s *BaseSuite) InitChain() {

func (s *BaseSuite) SetupSuite() {
s.Config = InitConfig()
//initValidatorOnce.Do(func() {
// s.InitChain()
//})
initValidatorOnce.Do(func() {
s.InitChain()
})

s.Client, _ = client.NewGreenfieldClient(s.Config.TendermintAddr, s.Config.ChainId)
tmClient := client.NewTendermintClient(s.Config.TendermintAddr)
Expand Down
10 changes: 5 additions & 5 deletions proto/greenfield/storage/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ message EventCreateObject {
string bucket_name = 3;
// object_name define the name of object
string object_name = 4;
// bucket_id define an u256 id for object
// bucket_id define an u256 id for bucket
string bucket_id = 6 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
Expand Down Expand Up @@ -499,7 +499,7 @@ message EventMigrationBucket {
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// The name of the bucket to be migrated
string bucket_name = 2;
// bucket_id define an u256 id for object
// bucket_id define an u256 id for bucket
string bucket_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
Expand All @@ -515,7 +515,7 @@ message EventCancelMigrationBucket {
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// The name of the bucket to be migrated
string bucket_name = 2;
// bucket_id define an u256 id for object
// bucket_id define an u256 id for bucket
string bucket_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
Expand All @@ -528,7 +528,7 @@ message EventRejectMigrateBucket {
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// The name of the bucket to be migrated
string bucket_name = 2;
// bucket_id define an u256 id for object
// bucket_id define an u256 id for bucket
string bucket_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
Expand All @@ -542,7 +542,7 @@ message EventCompleteMigrationBucket {
string operator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// The name of the bucket to be migrated
string bucket_name = 2;
// bucket_id define an u256 id for object
// bucket_id define an u256 id for bucket
string bucket_id = 3 [
(cosmos_proto.scalar) = "cosmos.Uint",
(gogoproto.customtype) = "Uint",
Expand Down
2 changes: 1 addition & 1 deletion x/storage/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2087,7 +2087,7 @@ func (k Keeper) RejectBucketMigration(ctx sdk.Context, operator sdk.AccAddress,

migrationBucketInfo, found := k.GetMigrationBucketInfo(ctx, bucketInfo.Id)
if !found {
panic("migration bucket key not found for a migrating bucket. Should not happen")
return types.ErrMigrationBucketFailed.Wrapf("reject bucket migration failed due to the migrate bucket info not found.")
}

sp := k.spKeeper.MustGetStorageProvider(ctx, migrationBucketInfo.DstSpId)
Expand Down
10 changes: 5 additions & 5 deletions x/storage/types/events.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d2da041

Please sign in to comment.