Skip to content

Commit

Permalink
Merge pull request #315 from paritytech/na-update-metadata
Browse files Browse the repository at this point in the history
update metadata to work with polkadot master
  • Loading branch information
kianenigma authored Sep 12, 2022
2 parents c9162a2 + b67bfcb commit 80c458d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
Binary file modified artifacts/kusama.scale
Binary file not shown.
Binary file modified artifacts/polkadot.scale
Binary file not shown.
Binary file modified artifacts/westend.scale
Binary file not shown.
2 changes: 1 addition & 1 deletion src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ macro_rules! helpers_for_runtime {
use crate::chain::[<$runtime>]::runtime;

// maximum weight of the signed submission is exposed from metadata and MUST be this.
let max_weight = api.constants().at(&runtime::constants().election_provider_multi_phase().signed_max_weight()).expect("constant `max weight` must exist");
let max_weight = api.constants().at(&runtime::constants().election_provider_multi_phase().signed_max_weight()).expect("constant `max weight` must exist").ref_time;

// allow up to 75% of the block size to be used for signed submission, length-wise. This
// value can be adjusted a bit if needed.
Expand Down

0 comments on commit 80c458d

Please sign in to comment.