Skip to content

Commit

Permalink
chore: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
zemyblue committed Jan 26, 2023
1 parent 4c46077 commit fe13a5b
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 50 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ type WasmApp struct {

// make IBC modules public for test purposes
// these modules are never directly routed to by the IBC Router
//ICAAuthModule ibcmock.IBCModule
// ICAAuthModule ibcmock.IBCModule

// the module manager
mm *module.Manager
Expand Down
2 changes: 0 additions & 2 deletions x/wasm/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
)

const (
firstCodeID = 1
ModuleName = types.ModuleName
StoreKey = types.StoreKey
TStoreKey = types.TStoreKey
Expand Down Expand Up @@ -125,7 +124,6 @@ type (
BankEncoder = keeper.BankEncoder
CustomEncoder = keeper.CustomEncoder
StakingEncoder = keeper.StakingEncoder
WasmEncoder = keeper.WasmEncoder
MessageEncoders = keeper.MessageEncoders
Keeper = keeper.Keeper
QueryHandler = keeper.QueryHandler
Expand Down
1 change: 0 additions & 1 deletion x/wasm/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const (
flagInstantiateByAddress = "instantiate-only-address"
flagInstantiateByAnyOfAddress = "instantiate-anyof-addresses"
flagUnpinCode = "unpin-code"
flagProposalType = "type"
)

// GetTxCmd returns the transaction commands for this module
Expand Down
4 changes: 0 additions & 4 deletions x/wasm/ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import (
sdk "github.com/line/lbm-sdk/types"
sdkerrors "github.com/line/lbm-sdk/types/errors"
capabilitytypes "github.com/line/lbm-sdk/x/capability/types"
//channeltypes "github.com/line/ibc-go/v3/modules/core/04-channel/types"
//porttypes "github.com/line/ibc-go/v3/modules/core/05-port/types"
//host "github.com/line/ibc-go/v3/modules/core/24-host"
//ibcexported "github.com/line/ibc-go/v3/modules/core/exported"
wasmvmtypes "github.com/line/wasmvm/types"

wasmTypes "github.com/line/wasmd/x/wasm/types"
Expand Down
39 changes: 0 additions & 39 deletions x/wasm/ibctesting/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,42 +605,3 @@ func (chain *TestChain) Balance(acc sdk.AccAddress, denom string) sdk.Coin {
func (chain *TestChain) AllBalances(acc sdk.AccAddress) sdk.Coins {
return chain.App.BankKeeper.GetAllBalances(chain.GetContext(), acc)
}

//func (chain TestChain) GetTestSupport() *app.TestSupport {
// return chain.App.(*TestingAppDecorator).TestSupport()
//}

//var _ ibctesting.TestingApp = TestingAppDecorator{}
//
//type TestingAppDecorator struct {
// *app.WasmApp
// t *testing.T
//}
//
//func NewTestingAppDecorator(t *testing.T, simApp *app.WasmApp) *TestingAppDecorator {
// return &TestingAppDecorator{WasmApp: simApp, t: t}
//}
//
//func (a TestingAppDecorator) GetBaseApp() *baseapp.BaseApp {
// return a.TestSupport().GetBaseApp()
//}
//
//func (a TestingAppDecorator) GetStakingKeeper() stakingkeeper.Keeper {
// return a.TestSupport().StakingKeeper()
//}
//
//func (a TestingAppDecorator) GetIBCKeeper() *ibckeeper.Keeper {
// return a.TestSupport().IBCKeeper()
//}
//
//func (a TestingAppDecorator) GetScopedIBCKeeper() capabilitykeeper.ScopedKeeper {
// return a.TestSupport().ScopeIBCKeeper()
//}
//
//func (a TestingAppDecorator) GetTxConfig() client.TxConfig {
// return a.TestSupport().GetTxConfig()
//}
//
//func (a TestingAppDecorator) TestSupport() *app.TestSupport {
// return app.NewTestSupport(a.t, a.WasmApp)
//}
4 changes: 1 addition & 3 deletions x/wasm/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,8 @@ func (k Keeper) create(ctx sdk.Context, creator sdk.AccAddress, wasmCode []byte,
return 0, checksum, sdkerrors.Wrap(types.ErrCreateFailed, err.Error())
}
}
ctx.GasMeter().ConsumeGas(k.compileCosts(ctx, len(wasmCode)), "Compiling WASM Bytecode")

//ctx.GasMeter().ConsumeGas(k.gasRegister.CompileCosts(len(wasmCode)), "Compiling wasm bytecode")
//checksum, err = k.wasmVM.Create(wasmCode)
ctx.GasMeter().ConsumeGas(k.compileCosts(ctx, len(wasmCode)), "Compiling WASM Bytecode")
checksum, err = k.wasmVM.Create(wasmCode)
if err != nil {
return 0, checksum, sdkerrors.Wrap(types.ErrCreateFailed, err.Error())
Expand Down

0 comments on commit fe13a5b

Please sign in to comment.