Token swap pallet benchmarks (#1174)

* token swap benchmarks

* spellcheck
This commit is contained in:
Svyatoslav Nikolsky
2021-10-08 12:35:11 +03:00
committed by Bastian Köcher
parent c0df990b90
commit 4b525f4fe1
14 changed files with 500 additions and 49 deletions
+6
View File
@@ -131,6 +131,12 @@ pub trait Size {
fn size_hint(&self) -> u32;
}
impl Size for &[u8] {
fn size_hint(&self) -> u32 {
self.len() as _
}
}
impl Size for () {
fn size_hint(&self) -> u32 {
0