-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: add missing gov v5 migration section (#3369)
* fix!: add missing gov v5 migration section * appease linters * update docs for localnet forks
- Loading branch information
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package v21_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
|
||
tmproto "github.com/cometbft/cometbft/proto/tendermint/types" | ||
|
||
"github.com/cosmos/gaia/v21/app/helpers" | ||
v21 "github.com/cosmos/gaia/v21/app/upgrades/v21" | ||
) | ||
|
||
func TestInitializeConstitutionCollection(t *testing.T) { | ||
gaiaApp := helpers.Setup(t) | ||
ctx := gaiaApp.NewUncachedContext(true, tmproto.Header{}) | ||
|
||
govKeeper := gaiaApp.GovKeeper | ||
|
||
pre, err := govKeeper.Constitution.Get(ctx) | ||
require.NoError(t, err) | ||
require.Equal(t, "", pre) | ||
err = v21.InitializeConstitutionCollection(ctx, *govKeeper) | ||
require.NoError(t, err) | ||
post, err := govKeeper.Constitution.Get(ctx) | ||
require.NoError(t, err) | ||
require.Equal(t, "This chain has no constitution.", post) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters