diff --git a/fee-abstraction/services/scaffolder/fee.go b/fee-abstraction/services/scaffolder/fee.go index 78507002..fc6cf988 100644 --- a/fee-abstraction/services/scaffolder/fee.go +++ b/fee-abstraction/services/scaffolder/fee.go @@ -16,12 +16,9 @@ import ( const ( feeAbsRepo = "github.com/osmosis-labs/fee-abstraction" + feeAbsPkg = "github.com/osmosis-labs/fee-abstraction/v8" ) -var versionMap = map[uint64]string{ - 8: "github.com/osmosis-labs/fee-abstraction/v8", -} - type ( // options represents configuration for the message scaffolding. options struct { diff --git a/fee-abstraction/services/scaffolder/scaffolder.go b/fee-abstraction/services/scaffolder/scaffolder.go index 47722917..843f36d5 100644 --- a/fee-abstraction/services/scaffolder/scaffolder.go +++ b/fee-abstraction/services/scaffolder/scaffolder.go @@ -58,11 +58,7 @@ func finish(ctx context.Context, session *cliui.Session, path string, version se // Add fee-abstraction module to the go.mod session.StartSpinner("Downloading fee abstraction module...") - pkgVersion, ok := versionMap[version.Major] - if !ok { - return errors.Errorf("version %d not supported", version.Major) - } - URL := fmt.Sprintf("%s@v%s", pkgVersion, version.String()) + URL := fmt.Sprintf("%s@v%s", feeAbsPkg, version.String()) if err := gocmd.Get(ctx, path, []string{URL}); err != nil { return err } diff --git a/rollkit/go.mod b/rollkit/go.mod index eac8e928..444a4a58 100644 --- a/rollkit/go.mod +++ b/rollkit/go.mod @@ -10,7 +10,6 @@ require ( github.com/gobuffalo/plush/v4 v4.1.19 github.com/hashicorp/go-plugin v1.6.0 github.com/ignite/cli/v28 v28.5.1 - github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.9.0 ) @@ -177,6 +176,7 @@ require ( github.com/pelletier/go-toml/v2 v2.2.0 // indirect github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect + github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_golang v1.19.0 // indirect github.com/prometheus/client_model v0.6.1 // indirect