check spendable when making bid, groundwork for built-in transfers

This commit is contained in:
2022-09-01 06:09:36 +00:00
parent e27f1c7737
commit f67118ebf6
8 changed files with 105 additions and 26 deletions

View File

@@ -5,6 +5,7 @@ import (
"cosmos-test/x/cosmostest/keeper"
"cosmos-test/x/cosmostest/types"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/store"
@@ -36,11 +37,14 @@ func CosmostestKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
memStoreKey,
"CosmostestParams",
)
k := keeper.NewKeeper(
cdc,
storeKey,
memStoreKey,
paramsSubspace,
// probably fix this later o_0
*new(types.BankKeeper),
)
ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger())