Update app.go for new constructor

This commit is contained in:
Ethan Frey 2020-10-06 20:59:22 +02:00
parent 2a92028b29
commit 3143ea67a7
2 changed files with 4 additions and 2 deletions

View File

@ -299,7 +299,10 @@ func NewWasmApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest b
// The last arguments can contain custom message handlers, and custom query handlers,
// if we want to allow any custom callbacks
supportedFeatures := "staking"
app.wasmKeeper = wasm.NewKeeper(app.cdc, keys[wasm.StoreKey], app.subspaces[wasm.ModuleName], app.accountKeeper, app.bankKeeper, app.stakingKeeper, wasmRouter, wasmDir, wasmConfig, supportedFeatures, nil, nil)
app.wasmKeeper = wasm.NewKeeper(
app.cdc, keys[wasm.StoreKey], app.subspaces[wasm.ModuleName], app.accountKeeper,
app.bankKeeper, app.stakingKeeper, app.distrKeeper, wasmRouter, wasmDir, wasmConfig,
supportedFeatures, nil, nil)
// The gov proposal types can be individually enabled
if len(enabledProposals) != 0 {

View File

@ -535,7 +535,6 @@ func TestQueryStakingInfo(t *testing.T) {
require.Equal(t, funds[0].Denom, delInfo2.Amount.Denom)
require.Equal(t, funds[0].Amount.String(), delInfo2.Amount.Amount)
// TODO: fix this - these should return real values!!! Issue #263
require.Equal(t, wasmTypes.NewCoin(200000, "stake"), delInfo2.CanRedelegate)
require.Len(t, delInfo2.AccumulatedRewards, 1)
// see bonding above to see how we calculate 36000 (240000 / 6 - 10% commission)