fix docker file #700
Annotations
2 errors and 2 warnings
Test
206 - 214 approx\n\tif manager := app.SnapshotManager(); manager != nil {\n\t\terr := manager.RegisterExtensions()\n\t\tif err != nil {\n\t\t\tpanic(fmt.Errorf(\"failed to register snapshot extension: %s\", err))\n\t\t}\n\t}\n\n\tapp.ScopedIBCKeeper = scopedIBCKeeper\n\tapp.ScopedTransferKeeper = scopedTransferKeeper\n\tapp.ScopedICAHostKeeper = scopedICAHostKeeper\n\tapp.ScopedICAControllerKeeper = scopedICAControllerKeeper\n\tapp.ScopedIBCConsumerKeeper = scopedIBCConsumerKeeper\n\n\t// In v0.46, the SDK introduces _postHandlers_. PostHandlers are like\n\t// antehandlers, but are run _after_ the `runMsgs` execution. They are also\n\t// defined as a chain, and have the same signature as antehandlers.\n\t//\n\t// In baseapp, postHandlers are run in the same store branch as `runMsgs`,\n\t// meaning that both `runMsgs` and `postHandler` state will be committed if\n\t// both are successful, and both will be reverted if any of the two fails.\n\t//\n\t// The SDK exposes a default postHandlers chain\n\t//\n\t// Please note that changing any of the anteHandler or postHandler chain is\n\t// likely to be a state-machine breaking change, which needs a coordinated\n\t// upgrade.\n\tapp.setPostHandler()\n\n\t// At startup, after all modules have been registered, check that all proto\n\t// annotations are correct.\n\tprotoFiles, err := proto.MergedRegistry()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\terr = msgservice.ValidateProtoAnnotations(protoFiles)\n\tif err != nil {\n\t\t// Once we switch to using protoreflect-based antehandlers, we might\n\t\t// want to panic here instead of logging a warning.\n\t\t_, _ = fmt.Fprintln(os.Stderr, err.Error())\n\t}\n\n\tif loadLatest {\n\t\tif err := app.LoadLatestVersion(); err != nil {\n\t\t\tpanic(fmt.Errorf(\"error loading last version: %w\", err))\n\t\t}\n\n\t\tctx := app.BaseApp.NewUncachedContext(true, tmproto.Header{})\n\t\t_ = ctx\n\n\t}\n\n\treturn app\n}\n\nfunc (app *ChainApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) {\n\t// when skipping sdk 47 for sdk 50, the upgrade handler is called too late in BaseApp\n\t// this is a hack to ensure that the migration is executed when needed and not panics\n\tapp.once.Do(func() {\n\t\tctx := app.NewUncachedContext(false, tmproto.Header{})\n\t\tif _, err := app.ConsensusParamsKeeper.Params(ctx, &consensusparamtypes.QueryParamsRequest{}); err != nil {\n\t\t\t// prevents panic: consensus key is nil: collections: not found: key 'no_key' of type github.com/cosmos/gogoproto/tendermint.types.ConsensusParams\n\t\t\t// sdk 47:\n\t\t\t// Migrate Tendermint consensus parameters from x/params module to a dedicated x/consensus module.\n\t\t\t// see https://github.com/cosmos/cosmos-sdk/blob/v0.47.0/simapp/upgrades.go#L66\n\t\t\tbaseAppLegacySS := app.GetSubspace(baseapp.Paramspace)\n\t\t\terr := baseapp.MigrateParams(sdk.UnwrapSDKContext(ctx), baseAppLegacySS, app.ConsensusParamsKeeper.ParamsStore)\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t}\n\t})\n\n\treturn app.BaseApp.FinalizeBlock(req)\n}\n\nfunc (app *ChainApp) setPostHandler() {\n\tpostHandler, err := posthandler.NewPostHandler(\n\t\tposthandler.HandlerOptions{},\n\t)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tapp.SetPostHandler(postHandler)\n}\n\n// Name returns the name of the App\nfunc (app *ChainApp) Name() string { return app.BaseApp.Name() }\n\n// PreBlocker application updates every pre block\nfunc (app *ChainApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) {\n\treturn app.ModuleManager.PreBlock(ctx)\n}\n\n// BeginBlocker application updates every begin block\nfunc (app *ChainApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error) {\n\treturn app.ModuleManager.BeginBlock(ctx)\n}\n\n// EndBlocker application updates every end block\nfunc (app *ChainApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error) {\n\treturn app.ModuleManager.EndBlock(ctx)\n}\n\nfunc (a *ChainApp) Configurator() module.Configurator {\n\treturn a.configurator\n}\n\n// InitChainer application update at chain initialization
|
Test
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Install Go
Restore cache failed: Dependencies file is not found in /home/runner/work/spawn/spawn. Supported file pattern: go.sum
|
Loading