From 8d69ce21f36f2cf5e4fe195845dff38a5ad72322 Mon Sep 17 00:00:00 2001 From: Lorenz Herzberger Date: Tue, 16 Jul 2024 09:36:50 +0200 Subject: [PATCH] fix: set correct module version for migration Signed-off-by: Lorenz Herzberger --- x/dao/module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/dao/module.go b/x/dao/module.go index fb91048..a2278d6 100644 --- a/x/dao/module.go +++ b/x/dao/module.go @@ -148,7 +148,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { return 2 } +func (AppModule) ConsensusVersion() uint64 { return 4 } // BeginBlock contains the logic that is automatically triggered at the beginning of each block func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {