0 votes
1 view
in Blockchain by (12.8k points)

Substrate uses a lot of macros to make it easier to write runtime modules:

construct_runtime!

decl_module!

decl_storage!

decl_event!

etc...

However, it is hard to understand what these macros actually do and what the final code looks like. How can I dig deeper into these macros and expansions?

1 Answer

0 votes
by (29.8k points)

Hi, try doing the following

cargo install cargo-expand

then just call it from your crate

cargo expand

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...