mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
MEL bound state-trie-migration (#11639)
* MEL bound state-trie-migration Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * wip Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use sp_std Co-authored-by: cheme <emericchevalier.pro@gmail.com> * Add doc Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Set MaxKeyLen default to 512 Just to be sure that it will work. There is also no real penalty from over-estimating it. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add more doc Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix assert_err_with_weight macro Looks like I'm the only one using it anyway... Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix tests that use env macro Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: cheme <emericchevalier.pro@gmail.com>
This commit is contained in:
committed by
GitHub
parent
f658ea0d99
commit
8c1865d2f2
@@ -762,7 +762,7 @@ macro_rules! assert_err_with_weight {
|
||||
($call:expr, $err:expr, $weight:expr $(,)? ) => {
|
||||
if let Err(dispatch_err_with_post) = $call {
|
||||
$crate::assert_err!($call.map(|_| ()).map_err(|e| e.error), $err);
|
||||
assert_eq!(dispatch_err_with_post.post_info.actual_weight, $weight.into());
|
||||
assert_eq!(dispatch_err_with_post.post_info.actual_weight, $weight);
|
||||
} else {
|
||||
panic!("expected Err(_), got Ok(_).")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user