Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update substrate to 0.9.17 #591

Merged
merged 27 commits into from
Mar 28, 2022
Merged

Conversation

alistair-singh
Copy link
Contributor

@alistair-singh alistair-singh commented Mar 9, 2022

Resolves: SNO-198

Notable Changes

Require MaxEncodedLen per default

paritytech/substrate#10662

  • I have added the attribute without_storage_info to pallets which cannot implement MaxEncodedLen yet. This is a non trivial change to make as we have to change code to use BoundedVec and to check bounds.
  • Added ticket to address this. Related: SNO-223

Remove Default bound for AccountId

paritytech/substrate#10403

  • The zero account is no longer the default as it poses potential risks around external callers using the zero account to gain privileges based on zero account being used as default in the code base.
  • I have switched to using Optional<AccountId> in pallets.
  • XCM config uses ParentIsPreset as opposed to ParentIsDefault.
  • Added CheckNonZeroSender as a signed extension to filter out zero accounts.

Switch from StructOps to Clap for arg parsing

https://github.com/substrate-developer-hub/substrate-parachain-template/pull/101

  • The substrate parachain node template now uses clap for args parsing. I have removed StructOps to keep some symmetry with the project to make future upgrades easier.

Updated Workflow Toolchains

  • Updated to stable-2022-01-20 (1.58.1)
  • This is to support the edition 2021 required by the snowbridge-test-collator

Allow unpaid execution from relay chain or relay chain executive.

https://github.com/substrate-developer-hub/substrate-parachain-template/pull/80

  • Changed the XCM config to allow unpaid execution for the relay chain or it's executive. Previously this was set to Unit.

E2E Tests

Currently e2e tests are failing from the parachain -> ethereum direction. This is because of an update to the BEEFY included in v0.9.17 version of polkadot. The beefy light client and relayer will need to be updated.

@claravanstaden claravanstaden mentioned this pull request Mar 22, 2022
@vgeddes vgeddes changed the base branch from main to polkadot-0.9.17 March 28, 2022 12:46
Copy link
Collaborator

@vgeddes vgeddes left a comment

Choose a reason for hiding this comment

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

LGTM!

@vgeddes vgeddes merged commit 860982e into polkadot-0.9.17 Mar 28, 2022
@vgeddes vgeddes deleted the alistair/update-to-0.9.17 branch March 28, 2022 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants