Skip to content

Commit be1a01d

Browse files
committed
fix: more general input field
1 parent 270a5a3 commit be1a01d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

framework/components/blockchain/blockchain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ type Input struct {
5656
CustomPorts []string `toml:"custom_ports"`
5757

5858
// Ton - MyLocalTon essesntial services to run tests
59-
DockerComposeFileURL string `toml:"docker_compose_file_url"`
60-
TonCoreServices []string `toml:"ton_core_services"`
59+
DockerComposeFileURL string `toml:"docker_compose_file_url"`
60+
DockerComposeServices []string `toml:"docker_compose_services"`
6161
}
6262

6363
// Output is a blockchain network output, ChainID and one or more nodes that forms the network

framework/components/blockchain/ton.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ func defaultTon(in *Input) {
3636
in.DockerComposeFileURL = "https://raw.githubusercontent.com/neodix42/mylocalton-docker/main/docker-compose.yaml"
3737
}
3838
// Note: in local env having all services could be useful(explorer, faucet), in CI we need only core services
39-
if os.Getenv("CI") == "true" && len(in.TonCoreServices) == 0 {
39+
if os.Getenv("CI") == "true" && len(in.DockerComposeServices) == 0 {
4040
// Note: mylocalton-docker's essential services, excluded explorer, restarter, faucet app,
41-
in.TonCoreServices = []string{
41+
in.DockerComposeServices = []string{
4242
"genesis", "tonhttpapi", "event-cache",
4343
"index-postgres", "index-worker", "index-api",
4444
}
@@ -92,8 +92,8 @@ func newTon(in *Input) (*Output, error) {
9292
var upOpts []compose.StackUpOption
9393
upOpts = append(upOpts, compose.Wait(true))
9494

95-
if len(in.TonCoreServices) > 0 {
96-
upOpts = append(upOpts, compose.RunServices(in.TonCoreServices...))
95+
if len(in.DockerComposeServices) > 0 {
96+
upOpts = append(upOpts, compose.RunServices(in.DockerComposeServices...))
9797
}
9898

9999
// always wait for healthy

framework/examples/myproject/smoke_ton.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[blockchain_a]
22
type = "ton"
33
docker_compose_file_url = "https://raw.githubusercontent.com/neodix42/mylocalton-docker/main/docker-compose.yaml"
4-
ton_core_services = [
4+
docker_compose_services = [
55
"genesis",
66
"tonhttpapi",
77
"event-cache",

0 commit comments

Comments
 (0)