Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

Update subxt to read constants from metadata at runtime#1

Merged
athei merged 7 commits intoathei:masterfrom
ascjones:aj/runtime-metadata-constants
Apr 4, 2022
Merged

Update subxt to read constants from metadata at runtime#1
athei merged 7 commits intoathei:masterfrom
ascjones:aj/runtime-metadata-constants

Conversation

@ascjones
Copy link
Contributor

@ascjones ascjones commented Mar 30, 2022

Currently the constant let max_weight = api.constants().system().block_weights().unwrap(); is defined statically from the metadata used in the codegen. So it can obviously differ from the actual value defined in the target node (and they do differ between e.g. substrate-contracts-node and canvas-parachain. See paritytech/subxt#493.

This PR updates subxt to master which now includes paritytech/subxt#494 which uses the metadata fetched from the node at runtime for the constant values.

@athei
Copy link
Owner

athei commented Mar 31, 2022

🥳

@ascjones ascjones marked this pull request as ready for review March 31, 2022 10:45
@athei athei merged commit 317a788 into athei:master Apr 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants