From dbf293c80719d748bbe5f8142fbaf7a98e37fdcb Mon Sep 17 00:00:00 2001 From: beer-1 <147697694+beer-1@users.noreply.github.com> Date: Wed, 18 Sep 2024 19:35:14 +0900 Subject: [PATCH] bump move to latest (#262) --- Dockerfile | 2 +- cmd/move/move.go | 8 ++++---- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 05ff6659..7b68adfd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG TARGETARCH ARG GOARCH # See https://github.com/initia-labs/movevm/releases -ENV LIBMOVEVM_VERSION=v0.4.5 +ENV LIBMOVEVM_VERSION=v0.4.8 # Install necessary packages RUN set -eux; apk add --no-cache ca-certificates build-base git cmake diff --git a/cmd/move/move.go b/cmd/move/move.go index 5f46a0a8..a0eca38d 100644 --- a/cmd/move/move.go +++ b/cmd/move/move.go @@ -567,8 +567,8 @@ the 'tests' directory`) cmd.Flags().Bool(flagVerbose, false, "Print additional diagnostics if available") cmd.Flags().Bool(flagSkipFetchLatestGitDeps, false, "Skip fetching latest git dependencies") cmd.Flags().Uint32(flagBytecodeVersion, 0, "Specify the version of the bytecode the compiler is going to emit") - cmd.Flags().Uint32(flagCompilerVersion, 1, "Specify the version of the compiler to use") - cmd.Flags().Uint32(flagLanguageVersion, 1, "Specify the version of the language to use") + cmd.Flags().String(flagCompilerVersion, "1", "Specify the version of the compiler to use") + cmd.Flags().String(flagLanguageVersion, "1", "Specify the version of the language to use") cmd.Flags().String(flagNamedAddresses, "", "Named addresses to use in compilation. ex: --named-addresses 'name_1=0x1,name_2=0x2'") } @@ -662,13 +662,13 @@ func getBuildConfig(cmd *cobra.Command) (*types.CompilerBuildConfig, error) { } options = append(options, buildtypes.WithBytecodeVersion(bytecodeVersion)) - compilerVersion, err := cmd.Flags().GetUint32(flagCompilerVersion) + compilerVersion, err := cmd.Flags().GetString(flagCompilerVersion) if err != nil { return nil, err } options = append(options, buildtypes.WithCompilerVersion(compilerVersion)) - languageVersion, err := cmd.Flags().GetUint32(flagLanguageVersion) + languageVersion, err := cmd.Flags().GetString(flagLanguageVersion) if err != nil { return nil, err } diff --git a/go.mod b/go.mod index 59f1a272..c56d25f4 100644 --- a/go.mod +++ b/go.mod @@ -40,7 +40,7 @@ require ( github.com/hashicorp/go-metrics v0.5.3 github.com/initia-labs/OPinit v0.4.3 // we also need to update `LIBMOVEVM_VERSION` of Dockerfile#9 - github.com/initia-labs/movevm v0.4.5 + github.com/initia-labs/movevm v0.4.8 github.com/noble-assets/forwarding/v2 v2.0.0-20240521090705-86712c4c9e43 github.com/pelletier/go-toml v1.9.5 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index 642e91ef..39d499fa 100644 --- a/go.sum +++ b/go.sum @@ -733,8 +733,8 @@ github.com/initia-labs/OPinit/api v0.4.3 h1:qljFODGw3F2ClGgJD4uiw1QXb3Px9tJX3jqW github.com/initia-labs/OPinit/api v0.4.3/go.mod h1:NorLLEBESDeLPQIzTFIT2XjvD/tkS1VRE6YL59TXYT0= github.com/initia-labs/cometbft v0.0.0-20240802022359-e0a5ce0336b6 h1:ObKvj9nGiKE+MWZ/LnH3rPcXsnBVVn4c30/iw+fMsd4= github.com/initia-labs/cometbft v0.0.0-20240802022359-e0a5ce0336b6/go.mod h1:jHPx9vQpWzPHEAiYI/7EDKaB1NXhK6o3SArrrY8ExKc= -github.com/initia-labs/movevm v0.4.5 h1:C1KfVQJiIqH3fcSlQ/KELRmEu2y3VAsVMSSyKTBfE0k= -github.com/initia-labs/movevm v0.4.5/go.mod h1:aUWdvFZPdULjJ2McQTE+mLnfnG3CLAz0TWJRFzFFUwg= +github.com/initia-labs/movevm v0.4.8 h1:4vNKHOyMjNtPyd79mhXU8hq3Klb1w+iKoiE4YThcOG8= +github.com/initia-labs/movevm v0.4.8/go.mod h1:aUWdvFZPdULjJ2McQTE+mLnfnG3CLAz0TWJRFzFFUwg= github.com/jhump/protoreflect v1.15.3 h1:6SFRuqU45u9hIZPJAoZ8c28T3nK64BNdp9w6jFonzls= github.com/jhump/protoreflect v1.15.3/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=