Skip to content

Commit

Permalink
fix: metadata update
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Jan 20, 2025
1 parent fd0c8da commit 658eaca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/rollapp/sequencer/metadata/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,16 @@ func Cmd() *cobra.Command {
return
}

var seqMetadata sequencerutils.Metadata
var seqMetadata struct {
GasPrice string `json:"gas_price"`
}

b, err := os.ReadFile(metadataFilePath)
if err != nil {
pterm.Error.Println("failed to read metadata file: ", err)
return
}

err = json.Unmarshal(b, &seqMetadata)
if err != nil {
pterm.Error.Println("failed to unmarshal metadata file: ", err)
Expand Down

0 comments on commit 658eaca

Please sign in to comment.