Skip to content

Commit a68baf0

Browse files
committed
chore: rename
1 parent a661100 commit a68baf0

File tree

1 file changed

+5
-4
lines changed
  • framework/components/blockchain

1 file changed

+5
-4
lines changed

framework/components/blockchain/ton.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,10 @@ func newTon(in *Input) (*Output, error) {
114114
if err := stack.Up(ctx, upOpts...); err != nil {
115115
return nil, fmt.Errorf("failed to start compose stack: %w", err)
116116
}
117-
cfgCtr, _ := stack.ServiceContainer(ctx, "genesis")
118-
cfgHost, _ := cfgCtr.Host(ctx)
119-
cfgPort, _ := cfgCtr.MappedPort(ctx, nat.Port(fmt.Sprintf("%s/tcp", DefaultTonSimpleServerPort)))
117+
118+
httpCtr, _ := stack.ServiceContainer(ctx, "genesis")
119+
httpHost, _ := httpCtr.Host(ctx)
120+
httpPort, _ := httpCtr.MappedPort(ctx, nat.Port(fmt.Sprintf("%s/tcp", DefaultTonSimpleServerPort)))
120121

121122
// discover lite‐server addr
122123
liteCtr, _ := stack.ServiceContainer(ctx, "genesis")
@@ -135,7 +136,7 @@ func newTon(in *Input) (*Output, error) {
135136
ExternalHTTPUrl: fmt.Sprintf("%s:%s", liteHost, litePort.Port()),
136137
}},
137138
NetworkSpecificData: &NetworkSpecificData{
138-
TonGlobalConfigURL: fmt.Sprintf("http://%s:%s/localhost.global.config.json", cfgHost, cfgPort.Port()),
139+
TonGlobalConfigURL: fmt.Sprintf("http://%s:%s/localhost.global.config.json", httpHost, httpPort.Port()),
139140
},
140141
}, nil
141142
}

0 commit comments

Comments
 (0)