Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: linning <[email protected]>
  • Loading branch information
NingLin-P committed Oct 2, 2024
1 parent bcef3cd commit 5a52e17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/pallet-domains/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ fn test_calculate_tx_range() {
}

#[test]
fn test_bundle_fromat_verification() {
fn test_bundle_format_verification() {
let opaque_extrinsic = |dest: u128, value: u128| -> OpaqueExtrinsic {
UncheckedExtrinsic {
signature: None,
Expand All @@ -617,8 +617,8 @@ fn test_bundle_fromat_verification() {
};
new_test_ext().execute_with(|| {
let domain_id = DomainId::new(0);
let max_extrincis_count = 10;
let max_bundle_size = opaque_extrinsic(0, 0).encoded_size() as u32 * max_extrincis_count;
let max_extrinsics_count = 10;
let max_bundle_size = opaque_extrinsic(0, 0).encoded_size() as u32 * max_extrinsics_count;
let domain_config = DomainConfig {
domain_name: "test-domain".to_owned(),
runtime_id: 0u32,
Expand Down Expand Up @@ -655,7 +655,7 @@ fn test_bundle_fromat_verification() {

// Bundle exceed max size
let mut too_large_bundle = valid_bundle.clone();
for i in 0..max_extrincis_count {
for i in 0..max_extrinsics_count {
too_large_bundle
.extrinsics
.push(opaque_extrinsic(i as u128, i as u128));
Expand Down

0 comments on commit 5a52e17

Please sign in to comment.