Introduce XCM Weight Traits (#3802)

* introduce xcm weight traits

* patch some low hanging fruit

* add weightinfobound

* use checked math rather than saturating

* Update xcm/xcm-builder/src/weight.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Revert "Update xcm/xcm-builder/src/weight.rs"

This reverts commit 6331b874f3dccf7f01a051ca6d4ee4d14a23a82d.

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
Shawn Tabrizi
2021-09-07 19:42:05 -04:00
committed by GitHub
parent 268055eb3e
commit 3d18ad34a9
8 changed files with 189 additions and 18 deletions
+3 -3
View File
@@ -130,9 +130,9 @@ impl<Config: config::Config> ExecuteXcm<Config::Call> for XcmExecutor<Config> {
#[derive(Debug)]
pub struct ExecutorError {
index: u32,
xcm_error: XcmError,
weight: u64,
pub index: u32,
pub xcm_error: XcmError,
pub weight: u64,
}
#[cfg(feature = "runtime-benchmarks")]