Skip to content

Commit 954414b

Browse files
committed
fix: story engine detection
1 parent 24fa872 commit 954414b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/app.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,11 @@ func (app *CosmosApp) LoadHomePath() error {
414414
return fmt.Errorf("failed to get output of binary: %w", err)
415415
}
416416

417+
// determine if app is story protocol by looking at default home path
418+
if strings.Contains(string(out), ".story") {
419+
app.isStoryProtocol = true
420+
}
421+
417422
// here we search for a specific line in the binary output when simply
418423
// executed without arguments. In the output, the default home path
419424
// is printed, which is parsed and used by KSYNC

0 commit comments

Comments
 (0)