Skip to content

Commit 0b63dae

Browse files
committed
fix msg discovery
1 parent d0dcaec commit 0b63dae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

starport/pkg/cosmosanalysis/module/module.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,11 @@ func (d *moduleDiscoverer) discover(pkg protoanalysis.Package) (Module, error) {
146146
// fill sdk Msgs.
147147
for _, msg := range msgs {
148148
pkgmsg, err := pkg.MessageByName(msg)
149-
if err != nil { // no msg found in the proto defs corresponds to discovered sdk message.
150-
return Module{}, err
149+
if err != nil {
150+
// no msg found in the proto defs corresponds to discovered sdk message.
151+
// if it cannot be found, nothing to worry about, this means that it is used
152+
// only internally and not open for actual use.
153+
continue
151154
}
152155

153156
m.Msgs = append(m.Msgs, Msg{

0 commit comments

Comments
 (0)