Skip to content

Commit

Permalink
every simulate need create a simulater keeper
Browse files Browse the repository at this point in the history
  • Loading branch information
giskook committed Apr 10, 2023
1 parent 9b2593f commit 0639c15
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions x/wasm/simulate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@ type Simulator struct {
k *keeper.Keeper
}

var (
gProxyKeeper keeper.Keeper
proxyKeeperOnce sync.Once
)

func proxyKeeperInst() keeper.Keeper {
proxyKeeperOnce.Do(
func() {
gProxyKeeper = NewProxyKeeper()
},
)

return gProxyKeeper
}

func NewWasmSimulator() simulator.Simulator {
k := NewProxyKeeper()
h := NewHandler(keeper.NewDefaultPermissionKeeper(k))
Expand Down Expand Up @@ -81,13 +66,6 @@ var (
interfaceReg types2.InterfaceRegistry
protoCdc *codec.ProtoCodec
proxyOnce sync.Once

// ss proxy.SubspaceProxy
// akp proxy.AccountKeeperProxy
// bkp proxy.BankKeeperProxy
// pkp proxy.PortKeeperProxy
// ckp proxy.CapabilityKeeperProxy
// skp proxy.SupplyKeeperProxy
)

func NewProxyKeeper() keeper.Keeper {
Expand Down

0 comments on commit 0639c15

Please sign in to comment.