Skip to content

Commit

Permalink
remove unused tx.proto import
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Mar 8, 2025
1 parent 2fd7a5f commit fdea6b9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions ignite/templates/typed/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ func protoTxModify(opts *typed.Options) genny.RunFn {
if err != nil {
return err
}
// Import
if err = protoutil.AddImports(protoFile, true, opts.ProtoTypeImport()); err != nil {
return errors.Errorf("failed while adding imports to %s: %w", path, err)
}

// RPC service
serviceMsg, err := protoutil.GetServiceByName(protoFile, "Msg")
Expand Down
4 changes: 0 additions & 4 deletions ignite/templates/typed/map/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,6 @@ func protoTxModify(opts *typed.Options) genny.RunFn {
if err != nil {
return err
}
// Add initial import for the new type
if err = protoutil.AddImports(protoFile, true, opts.ProtoTypeImport()); err != nil {
return errors.Errorf("failed while adding imports in %s: %w", path, err)
}

// RPC service
serviceMsg, err := protoutil.GetServiceByName(protoFile, "Msg")
Expand Down
4 changes: 0 additions & 4 deletions ignite/templates/typed/singleton/singleton.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,6 @@ func protoTxModify(opts *typed.Options) genny.RunFn {
return err
}

// Add initial import for the new type:
if err = protoutil.AddImports(protoFile, true, opts.ProtoTypeImport()); err != nil {
return errors.Errorf("failed while adding imports to %s: %w", path, err)
}
// Add the RPC service.
serviceMsg, err := protoutil.GetServiceByName(protoFile, "Msg")
if err != nil {
Expand Down

0 comments on commit fdea6b9

Please sign in to comment.