Skip to content
Snippets Groups Projects
Unverified Commit b72e76fb authored by Xavier Lau's avatar Xavier Lau Committed by GitHub
Browse files

Add "run to block" tools (#7109)


Introduce `frame_system::Pallet::run_to_block`,
`frame_system::Pallet::run_to_block_with`, and
`frame_system::RunToBlockHooks` to establish a generic `run_to_block`
mechanism for mock tests, minimizing redundant implementations across
various pallets.

Closes #299.

---

Polkadot address: 156HGo9setPcU2qhFMVWLkcmtCEGySLwNqa3DaEiYSWtte4Y

---------

Signed-off-by: default avatarXavier Lau <x@acg.box>
Co-authored-by: default avatarBastian Köcher <git@kchr.de>
Co-authored-by: command-bot <>
Co-authored-by: default avatarGuillaume Thiolliere <guillaume.thiolliere@parity.io>
Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
parent f798111a
Pipeline #511886 waiting for manual action with stages
in 4 minutes and 20 seconds
Showing
with 298 additions and 451 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment