mirror of https://github.com/certusone/wasmd.git
Update app.go for new constructor
This commit is contained in:
parent
2a92028b29
commit
3143ea67a7
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue