2022-04-05 07:09:27 +00:00
|
|
|
package bond_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-09-07 06:36:11 +00:00
|
|
|
app "github.com/cerc-io/laconicd/app"
|
|
|
|
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
|
2022-04-05 07:09:27 +00:00
|
|
|
"github.com/cosmos/cosmos-sdk/simapp"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
|
2022-10-10 10:38:33 +00:00
|
|
|
app := app.Setup(false, func(ea *app.EthermintApp, genesis simapp.GenesisState) simapp.GenesisState {
|
2022-04-05 07:09:27 +00:00
|
|
|
return genesis
|
|
|
|
})
|
|
|
|
ctx := app.BaseApp.NewContext(false, tmproto.Header{})
|
|
|
|
|
|
|
|
acc := app.AccountKeeper.GetModuleAccount(ctx, bondtypes.ModuleName)
|
|
|
|
require.NotNil(t, acc)
|
|
|
|
}
|