Skip to content
Unverified Commit 8a96d07e authored by thiolliere's avatar thiolliere Committed by GitHub
Browse files

pallet macro: do not generate try-runtime related code when frame-support...


pallet macro: do not generate try-runtime related code when frame-support doesn't have try-runtime. (#5099)

Status: Ready for review

Fix https://github.com/paritytech/polkadot-sdk/issues/5092

Introduce a new macro in frame-support which discard content if
`try-runtime` is not enabled.

Use this macro inside `frame-support-procedural` to generate code only
when `frame-support` is compiled with `try-runtime`.

---------

Co-authored-by: default avatarBastian Köcher <[email protected]>
parent b9aa8ab6
Pipeline #486166 waiting for manual action with stages
in 1 hour, 16 minutes, and 48 seconds
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