Skip to content

Commit

Permalink
fix(application): simulation incorrect nonce fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshutr committed Feb 6, 2024
1 parent e994a65 commit 6d3824b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/types/applications/base/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ type application struct {

moduleManager *module.Manager

baseapp.BaseApp
*baseapp.BaseApp
}

var _ applications.Application = (*application)(nil)
Expand Down Expand Up @@ -431,7 +431,7 @@ func (application application) ModuleInitFlags(command *cobra.Command) {
crisis.AddModuleInitFlags(command)
}
func (application application) Initialize(logger tendermintLog.Logger, db tendermintDB.DB, writer io.Writer, loadLatest bool, invCheckPeriod uint, skipUpgradeHeights map[int64]bool, home string, appOptions serverTypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp)) applications.Application {
application.BaseApp = *baseapp.NewBaseApp(application.name, logger, db, application.GetCodec().TxDecoder(), baseAppOptions...)
application.BaseApp = baseapp.NewBaseApp(application.name, logger, db, application.GetCodec().TxDecoder(), baseAppOptions...)
application.BaseApp.SetCommitMultiStoreTracer(writer)
application.BaseApp.SetVersion(version.Version)
application.BaseApp.SetInterfaceRegistry(application.GetCodec().InterfaceRegistry())
Expand Down Expand Up @@ -564,7 +564,7 @@ func (application application) Initialize(logger tendermintLog.Logger, db tender
application.keys[upgradeTypes.StoreKey],
application.GetCodec(),
home,
&application.BaseApp,
application.BaseApp,
)

application.stakingKeeper = *application.stakingKeeper.SetHooks(stakingTypes.NewMultiStakingHooks(application.distributionKeeper.Hooks(), application.slashingKeeper.Hooks()))
Expand Down

0 comments on commit 6d3824b

Please sign in to comment.