Use LibwasmvmVersion from wasmvm root

This commit is contained in:
Simon Warta
2022-05-16 13:59:07 +02:00
parent 5328891ade
commit 5809ca2843

View File

@@ -10,14 +10,13 @@ import (
"io/ioutil"
"strconv"
wasmvm "github.com/CosmWasm/wasmvm"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/cobra"
flag "github.com/spf13/pflag"
wasmvmapi "github.com/CosmWasm/wasmvm/api"
"github.com/CosmWasm/wasmd/x/wasm/types"
)
@@ -52,7 +51,7 @@ func GetCmdLibVersion() *cobra.Command {
Aliases: []string{"lib-version"},
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
version, err := wasmvmapi.LibwasmvmVersion()
version, err := wasmvm.LibwasmvmVersion()
if err != nil {
return fmt.Errorf("error retrieving libwasmvm version: %w", err)
}