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

Update node-template construct_runtime! syntax #10155

Merged
merged 2 commits into from
Nov 4, 2021

Conversation

nuke-web3
Copy link
Contributor

@nuke-web3 nuke-web3 commented Nov 2, 2021

Per #9681, the construct_runtime! section can now just specify the pallets, and no need to concretely set the generics they need for the template.

I will create a new tag for this for the downstream template (monthly-2021-11+1)
I would like to move the pre-release tag (as the build was broken for the tag as it is now) to include it in updating it for the monthly release https://github.com/substrate-developer-hub/substrate-node-template/issues/258
No need to change tags, it will just be included in the template downstream ✔️

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Nov 2, 2021
@nuke-web3 nuke-web3 added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Nov 2, 2021
@@ -150,5 +150,6 @@ fn testnet_genesis(
// Assign network admin rights.
key: root_key,
},
transaction_payment: Default::default(),
Copy link
Contributor Author

@nuke-web3 nuke-web3 Nov 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this somehow missed? I could not build https://github.com/paritytech/substrate/tree/monthly-2021-11 out of the box 😬
Is Default correct to use?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes below in transaction payment we don't write the Config part, thus the genesis config of transaction payment is not included.
You can either do exclude_part { Config } or do as you did (which I think is better)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes default is good

@kianenigma
Copy link
Contributor

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 6af19fd into master Nov 4, 2021
@paritytech-processbot paritytech-processbot bot deleted the ds/patch_construct_runtime branch November 4, 2021 13:37
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* update  `construct_runtime!` syntax

* fix build
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* update  `construct_runtime!` syntax

* fix build
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants