Skip to content

Commit

Permalink
chore: goimports reviser
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Jul 10, 2024
1 parent 0e1d2a1 commit 1d23104
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cmd/keys/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"fmt"
"path/filepath"

"github.com/spf13/cobra"

"github.com/dymensionxyz/roller/cmd/consts"
"github.com/dymensionxyz/roller/cmd/utils"
"github.com/dymensionxyz/roller/config"
datalayer "github.com/dymensionxyz/roller/data_layer"
"github.com/spf13/cobra"
)

var flagNames = struct {
Expand Down
7 changes: 6 additions & 1 deletion cmd/sequencer/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package status
import (
"fmt"

"github.com/spf13/cobra"

"github.com/dymensionxyz/roller/cmd/utils"
"github.com/dymensionxyz/roller/config"
"github.com/dymensionxyz/roller/sequencer"
"github.com/spf13/cobra"
)

func Cmd() *cobra.Command {
Expand All @@ -16,6 +17,10 @@ func Cmd() *cobra.Command {
Run: func(cmd *cobra.Command, args []string) {
home := cmd.Flag(utils.FlagNames.Home).Value.String()
rollappConfig, err := config.LoadConfigFromTOML(home)
if err != nil {
fmt.Println("failed to load config:", err)
return
}
utils.PrettifyErrorIfExists(err)
seq := sequencer.GetInstance(rollappConfig)
fmt.Println(seq.GetSequencerStatus(rollappConfig))
Expand Down
3 changes: 2 additions & 1 deletion cmd/services/load/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import (
"runtime"
"text/template"

"github.com/spf13/cobra"

"github.com/dymensionxyz/roller/cmd/consts"
"github.com/dymensionxyz/roller/cmd/utils"
"github.com/spf13/cobra"
)

type Service struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/tx/register/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"math/big"
"os/exec"

"github.com/spf13/cobra"

"github.com/dymensionxyz/roller/cmd/consts"
"github.com/dymensionxyz/roller/cmd/tx/tx_utils"

"github.com/dymensionxyz/roller/cmd/utils"
"github.com/dymensionxyz/roller/config"
"github.com/spf13/cobra"
)

// TODO: Test registration on 35-C and update the price
Expand Down

0 comments on commit 1d23104

Please sign in to comment.