Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Sep 21, 2024
1 parent 6f17c09 commit 7e23172
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions extension/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ mod tests {
assert!(DispatchCallWithFilter::<Nothing>::execute(&mut env).is_err());
assert_eq!(
env.charged(),
read_from_buffer_weight(encoded_call.len() as u32)
+ call.get_dispatch_info().weight
read_from_buffer_weight(encoded_call.len() as u32) +
call.get_dispatch_info().weight
);
}

Expand Down Expand Up @@ -362,8 +362,8 @@ mod tests {
assert!(DispatchCall::execute(&mut env).is_ok());
assert_eq!(
env.charged(),
read_from_buffer_weight(encoded_call.len() as u32)
+ call.get_dispatch_info().weight
read_from_buffer_weight(encoded_call.len() as u32) +
call.get_dispatch_info().weight
);
})
}
Expand All @@ -387,9 +387,9 @@ mod tests {
assert_eq!(call.get_dispatch_info().weight, migrate_weight + weight_limit);
assert_eq!(
env.charged(),
read_from_buffer_weight(encoded_call.len() as u32)
+ call.get_dispatch_info().weight
- extra_weight
read_from_buffer_weight(encoded_call.len() as u32) +
call.get_dispatch_info().weight -
extra_weight
);
})
}
Expand Down Expand Up @@ -488,8 +488,8 @@ mod tests {
let expected = "pop".as_bytes().encode();
assert_eq!(
env.charged(),
read_from_buffer_weight(encoded_read.len() as u32)
+ read.weight() + write_to_contract_weight(expected.len() as u32)
read_from_buffer_weight(encoded_read.len() as u32) +
read.weight() + write_to_contract_weight(expected.len() as u32)
);
}

Expand Down

0 comments on commit 7e23172

Please sign in to comment.