mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 08:11:04 +00:00
Benchmark Polkadot Claims Pallet (#876)
* fix * Starting to add benchmarks * make compile * add benchmarks * Make work with Substrate master * Bench validate unsigned * back to polkadot master * starting to add cli with feature flag * more stuff * Add to kusama * Update Cargo.lock * fix dev dep * bump wasm builder * Remove encode from keccak benchmark * bump spec * Add weight documentation * Update Cargo.lock * Update check_runtime.sh * Update publish_draft_release.sh * Update Cargo.lock Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
|
||||
//! Polkadot parachain types.
|
||||
|
||||
use rstd::prelude::*;
|
||||
use rstd::cmp::Ordering;
|
||||
use sp_std::prelude::*;
|
||||
use sp_std::cmp::Ordering;
|
||||
use parity_scale_codec::{Encode, Decode};
|
||||
use bitvec::vec::BitVec;
|
||||
use super::{Hash, Balance};
|
||||
@@ -646,7 +646,7 @@ pub struct FeeSchedule {
|
||||
impl FeeSchedule {
|
||||
/// Compute the fee for a message of given size.
|
||||
pub fn compute_fee(&self, n_bytes: usize) -> Balance {
|
||||
use rstd::mem;
|
||||
use sp_std::mem;
|
||||
debug_assert!(mem::size_of::<Balance>() >= mem::size_of::<usize>());
|
||||
|
||||
let n_bytes = n_bytes as Balance;
|
||||
|
||||
Reference in New Issue
Block a user