@@ -12,7 +12,6 @@ import (
1212	"github.com/tendermint/starport/starport/pkg/placeholder" 
1313	"github.com/tendermint/starport/starport/pkg/validation" 
1414	"github.com/tendermint/starport/starport/services/scaffolder" 
15- 	"github.com/tendermint/starport/starport/templates/module" 
1615	modulecreate "github.com/tendermint/starport/starport/templates/module/create" 
1716)
1817
@@ -23,31 +22,7 @@ const (
2322	flagRequireRegistration  =  "require-registration" 
2423)
2524
26- var  ibcRouterPlaceholderInstruction  =  fmt .Sprintf (` 
27- 💬 To enable scaffolding of IBC modules, remove these lines from app/app.go: 
28- 
29- %s 
30- 
31- 💬 Then, find the following line: 
32- 
33- %s 
34- 
35- 💬 Finally, add this block of code below: 
36- %s 
37- 
38- ` ,
39- 	infoColor (`ibcRouter := porttypes.NewRouter() 
40- ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferModule) 
41- app.IBCKeeper.SetRouter(ibcRouter)` ),
42- 	infoColor (module .PlaceholderSgAppKeeperDefinition ),
43- 	infoColor (`ibcRouter := porttypes.NewRouter() 
44- ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferModule) 
45- ` + module .PlaceholderIBCAppRouter + ` 
46- app.IBCKeeper.SetRouter(ibcRouter)` ),
47- )
48- 
49- // NewScaffoldModule returns the command to scaffold an 
50- // sdk module. 
25+ // NewScaffoldModule returns the command to scaffold a Cosmos SDK module 
5126func  NewScaffoldModule () * cobra.Command  {
5227	c  :=  & cobra.Command {
5328		Use :   "module [name]" ,
@@ -125,11 +100,6 @@ func scaffoldModuleHandler(cmd *cobra.Command, args []string) error {
125100	sm , err  :=  sc .CreateModule (placeholder .New (), name , options ... )
126101	s .Stop ()
127102	if  err  !=  nil  {
128- 		// If this is an old scaffolded application that doesn't contain the necessary placeholder 
129- 		// We give instruction to the user to modify the application 
130- 		if  err  ==  scaffolder .ErrNoIBCRouterPlaceholder  {
131- 			fmt .Print (ibcRouterPlaceholderInstruction )
132- 		}
133103		var  validationErr  validation.Error 
134104		if  ! requireRegistration  &&  errors .As (err , & validationErr ) {
135105			fmt .Fprintf (& msg , "Can't register module '%s'.\n " , name )
0 commit comments