Skip to content

Commit b44ddd4

Browse files
committed
fix: update moniker in config toml
1 parent d429551 commit b44ddd4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

models/weaveinit/run_l1_node.go

+4
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,10 @@ func initializeApp(state *RunL1NodeState) tea.Cmd {
792792

793793
initiaConfigPath := filepath.Join(userHome, utils.InitiaConfigDirectory)
794794

795+
if err := utils.UpdateTomlValue(filepath.Join(initiaConfigPath, "config.toml"), "moniker", state.moniker); err != nil {
796+
panic(fmt.Sprintf("failed to update moniker: %v", err))
797+
}
798+
795799
if err := utils.UpdateTomlValue(filepath.Join(initiaConfigPath, "app.toml"), "minimum-gas-prices", state.minGasPrice); err != nil {
796800
panic(fmt.Sprintf("failed to update minimum-gas-prices: %v", err))
797801
}

0 commit comments

Comments
 (0)