From 375cfbd3875b589eef4fd046d5bafeb361eb11e8 Mon Sep 17 00:00:00 2001 From: sweexordious Date: Mon, 8 Jul 2024 17:02:48 +0100 Subject: [PATCH] chore: lint --- cmd/blobstream-ops/replay/cmd.go | 2 +- cmd/blobstream-ops/replay/config.go | 2 +- cmd/blobstream-ops/verify/cmd.go | 2 +- cmd/blobstream-ops/verify/config.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/blobstream-ops/replay/cmd.go b/cmd/blobstream-ops/replay/cmd.go index 3825032..ef00c76 100644 --- a/cmd/blobstream-ops/replay/cmd.go +++ b/cmd/blobstream-ops/replay/cmd.go @@ -22,7 +22,7 @@ func Command() *cobra.Command { Long: "verifies that a BlobstreamX contract is committing to valid data", SilenceUsage: true, RunE: func(cmd *cobra.Command, _ []string) error { - config, err := parseFlags(cmd) + config, err := parseFlags() if err != nil { return err } diff --git a/cmd/blobstream-ops/replay/config.go b/cmd/blobstream-ops/replay/config.go index 45dddf1..1a6a2b5 100644 --- a/cmd/blobstream-ops/replay/config.go +++ b/cmd/blobstream-ops/replay/config.go @@ -179,7 +179,7 @@ func ValidateEVMAddress(addr string) error { return nil } -func parseFlags(cmd *cobra.Command) (Config, error) { +func parseFlags() (Config, error) { sourceContractAddress := viper.GetString(FlagSourceEVMContractAddress) targetContractAddress := viper.GetString(FlagTargetEVMContractAddress) diff --git a/cmd/blobstream-ops/verify/cmd.go b/cmd/blobstream-ops/verify/cmd.go index 5fe2c80..d71a2e2 100644 --- a/cmd/blobstream-ops/verify/cmd.go +++ b/cmd/blobstream-ops/verify/cmd.go @@ -42,7 +42,7 @@ func VerifyContractCommand() *cobra.Command { Short: "Starts the BlobstreamX contract verifier", Long: "verifies that a BlobstreamX contract is committing to valid data", RunE: func(cmd *cobra.Command, _ []string) error { - config, err := parseStartFlags(cmd) + config, err := parseStartFlags() if err != nil { return err } diff --git a/cmd/blobstream-ops/verify/config.go b/cmd/blobstream-ops/verify/config.go index 75542fb..6ca58a7 100644 --- a/cmd/blobstream-ops/verify/config.go +++ b/cmd/blobstream-ops/verify/config.go @@ -86,7 +86,7 @@ func ValidateEVMAddress(addr string) error { return nil } -func parseStartFlags(cmd *cobra.Command) (StartConfig, error) { +func parseStartFlags() (StartConfig, error) { contractAddress := viper.GetString(FlagEVMContractAddress) evmRPC := viper.GetString(FlagEVMRPC) coreRPC := viper.GetString(FlagCoreRPC)