Skip to content

Commit 41e3960

Browse files
committed
rollback chain/init.go changes
1 parent 5d46d94 commit 41e3960

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ require (
4747
github.com/goccy/go-yaml v1.11.3
4848
github.com/golangci/golangci-lint v1.57.2
4949
github.com/google/go-github/v48 v48.2.0
50+
github.com/google/go-querystring v1.1.0
5051
github.com/gorilla/mux v1.8.1
5152
github.com/hashicorp/go-hclog v1.6.3
5253
github.com/hashicorp/go-plugin v1.6.0
@@ -270,7 +271,6 @@ require (
270271
github.com/google/go-cmp v0.6.0 // indirect
271272
github.com/google/go-containerregistry v0.19.1 // indirect
272273
github.com/google/go-dap v0.11.0 // indirect
273-
github.com/google/go-querystring v1.1.0 // indirect
274274
github.com/google/pprof v0.0.0-20240509144519-723abb6459b7 // indirect
275275
github.com/google/uuid v1.6.0 // indirect
276276
github.com/gordonklaus/ineffassign v0.1.0 // indirect

ignite/internal/plugin/testdata/execute_fail/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
2525
github.com/cockroachdb/redact v1.1.5 // indirect
2626
github.com/cosmos/btcutil v1.0.5 // indirect
27-
github.com/cosmos/cosmos-sdk v0.50.6 // indirect
27+
github.com/cosmos/cosmos-sdk v0.50.7 // indirect
2828
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
2929
github.com/emirpasic/gods v1.18.1 // indirect
3030
github.com/fatih/color v1.16.0 // indirect

ignite/internal/plugin/testdata/execute_ok/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
2525
github.com/cockroachdb/redact v1.1.5 // indirect
2626
github.com/cosmos/btcutil v1.0.5 // indirect
27-
github.com/cosmos/cosmos-sdk v0.50.6 // indirect
27+
github.com/cosmos/cosmos-sdk v0.50.7 // indirect
2828
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
2929
github.com/emirpasic/gods v1.18.1 // indirect
3030
github.com/fatih/color v1.16.0 // indirect

ignite/services/chain/init.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ func (c *Chain) IsInitialized() (bool, error) {
229229
if _, err := os.Stat(gentxDir); os.IsNotExist(err) {
230230
return false, nil
231231
}
232+
if err != nil {
233+
// Return error on other error
234+
return false, err
235+
}
232236

233237
return true, nil
234238
}

integration/plugin/testdata/example-plugin/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
2323
github.com/cockroachdb/redact v1.1.5 // indirect
2424
github.com/cosmos/btcutil v1.0.5 // indirect
25-
github.com/cosmos/cosmos-sdk v0.50.6 // indirect
25+
github.com/cosmos/cosmos-sdk v0.50.7 // indirect
2626
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
2727
github.com/emirpasic/gods v1.18.1 // indirect
2828
github.com/fatih/color v1.16.0 // indirect

0 commit comments

Comments
 (0)