Skip to content

Commit

Permalink
chore: generalize update field func
Browse files Browse the repository at this point in the history
feat: initialize additional sequencer da clients from the initial state
update height
  • Loading branch information
artemijspavlovs committed Aug 14, 2024
1 parent 44a0c5f commit 1209eb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/rollapp/init/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ func runInit(cmd *cobra.Command, env string, raID string) error {
}

daFields := map[string]interface{}{
"DASer.SampleFrom": heightInt,
"Header.TrustedHash": blockIdHash,
"DASer.SampleFrom": heightInt,
}

celestiaConfigFilePath := filepath.Join(
Expand Down
2 changes: 1 addition & 1 deletion utils/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func GetKeyFromTomlFile(tmlFilePath, key string) (string, error) {
}

// TODO: improve
func UpdateFieldInToml(tmlFilePath, key string, value interface{}) error {
func UpdateFieldInToml(tmlFilePath, key string, value any) error {
tomlCfg, err := toml.LoadFile(tmlFilePath)
if err != nil {
return fmt.Errorf("failed to load %s: %v", tmlFilePath, err)
Expand Down

0 comments on commit 1209eb7

Please sign in to comment.