Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

[Fix] try_state in BagsList needs to be feature-gated and the signature has to adhere to that in Hooks. #13293

@ruseinov

Description

@ruseinov

The current BagsList implementation does not feature-gate try_state and nor does it have an argument for block number.

As a consequence a bunch of other pallets/tests are calling a variety of try_state methods outside of try-runtime context. What this means is we need to feature gate all the instances of try_state related to BagsList pallet and make sure we have a decent substitute to call within tests/benchmarks, similar to do_try_state in staking pallet.

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions