Skip to content

Commit

Permalink
Apply updates; formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe committed Jan 19, 2023
1 parent 6b1337e commit c16bad6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions x/wasm/client/cli/query_lib_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func GetCmdLibVersion() *cobra.Command {
fmt.Println(version)
return nil
},
SilenceUsage: true,
}
return cmd
}
1 change: 1 addition & 0 deletions x/wasm/client/cli/query_lib_version_no_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func GetCmdLibVersion() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
return fmt.Errorf("not implemented, please build with cgo enabled")
},
SilenceUsage: true,
}
return cmd
}
5 changes: 3 additions & 2 deletions x/wasm/keeper/keeper_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ package keeper
import (
"path/filepath"

"github.com/CosmWasm/wasmd/x/wasm/types"
wasmvm "github.com/CosmWasm/wasmvm"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"

"github.com/CosmWasm/wasmd/x/wasm/types"
)

// NewKeeper creates a new contract Keeper instance
Expand Down Expand Up @@ -58,7 +59,7 @@ func NewKeeper(
maxQueryStackSize: types.DefaultMaxQueryStackSize,
acceptedAccountTypes: defaultAcceptedAccountTypes,
}
keeper.wasmVMQueryHandler = DefaultQueryPlugins(bankKeeper, stakingKeeper, distKeeper, channelKeeper, queryRouter, keeper)
keeper.wasmVMQueryHandler = DefaultQueryPlugins(bankKeeper, stakingKeeper, distKeeper, channelKeeper, keeper)
for _, o := range opts {
o.apply(keeper)
}
Expand Down
3 changes: 2 additions & 1 deletion x/wasm/keeper/keeper_no_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
package keeper

import (
"github.com/CosmWasm/wasmd/x/wasm/types"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"

"github.com/CosmWasm/wasmd/x/wasm/types"
)

// NewKeeper creates a new contract Keeper instance
Expand Down

0 comments on commit c16bad6

Please # to comment.