Skip to content

Commit 609e3d3

Browse files
committed
test: run l1 node
1 parent 13cc3aa commit 609e3d3

File tree

3 files changed

+889
-17
lines changed

3 files changed

+889
-17
lines changed

models/initia/run_l1_node.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ func (m *StateSyncSetupLoading) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
13401340
}
13411341

13421342
if m.Loading.Completing {
1343-
m.state.weave.PushPreviousResponse(styles.RenderPreviousResponse(styles.NoSeparator, fmt.Sprintf("Snapshot setup successfully."), []string{}, ""))
1343+
m.state.weave.PushPreviousResponse(styles.RenderPreviousResponse(styles.NoSeparator, "Snapshot setup successfully.", []string{}, ""))
13441344
return m, tea.Quit
13451345
}
13461346
return m, cmd
@@ -1375,7 +1375,7 @@ func setupStateSync(state *RunL1NodeState) tea.Cmd {
13751375
if err = utils.UpdateTomlValue(filepath.Join(initiaConfigPath, "config.toml"), "statesync.trust_height", fmt.Sprintf("%d", stateSyncInfo.TrustHeight)); err != nil {
13761376
return utils.ErrorLoading{Err: fmt.Errorf("[error] Failed to setup state sync trust_height: %v", err)}
13771377
}
1378-
if err = utils.UpdateTomlValue(filepath.Join(initiaConfigPath, "config.toml"), "statesync.trust_hash", fmt.Sprintf("%s", stateSyncInfo.TrustHash)); err != nil {
1378+
if err = utils.UpdateTomlValue(filepath.Join(initiaConfigPath, "config.toml"), "statesync.trust_hash", stateSyncInfo.TrustHash); err != nil {
13791379
return utils.ErrorLoading{Err: fmt.Errorf("[error] Failed to setup state sync trust_hash: %v", err)}
13801380
}
13811381

0 commit comments

Comments
 (0)