Fix workflow versions (#317)

This commit is contained in:
Nikita Khateev
2024-09-20 13:05:42 +04:00
committed by GitHub
parent a21d0e3648
commit dbf3576f51
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Set up Rust - name: Set up Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
@@ -33,7 +33,7 @@ jobs:
working-directory: generic-template/template-fuzzer working-directory: generic-template/template-fuzzer
- name: Save Artifacts - name: Save Artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: fuzzing-artifacts name: fuzzing-artifacts
path: | path: |
+3 -3
View File
@@ -113,7 +113,7 @@ fn process_input(accounts: &[AccountId], genesis: &Storage, data: &[u8]) {
continue; continue;
} }
let origin = accounts[origin_no].clone(); let origin = accounts[origin_no];
println!("\n origin: {origin:?}"); println!("\n origin: {origin:?}");
println!(" call: {extrinsic:?}"); println!(" call: {extrinsic:?}");
@@ -288,9 +288,9 @@ fn check_invariants(block: u32, initial_total_issuance: Balance) {
counted_free += info.data.free; counted_free += info.data.free;
counted_reserved += info.data.reserved; counted_reserved += info.data.reserved;
let max_lock: Balance = let max_lock: Balance =
Balances::locks(&account).iter().map(|l| l.amount).max().unwrap_or_default(); Balances::locks(account).iter().map(|l| l.amount).max().unwrap_or_default();
assert_eq!(max_lock, info.data.frozen, "Max lock should be equal to frozen balance"); assert_eq!(max_lock, info.data.frozen, "Max lock should be equal to frozen balance");
let sum_holds: Balance = Holds::<Runtime>::get(&account).iter().map(|l| l.amount).sum(); let sum_holds: Balance = Holds::<Runtime>::get(account).iter().map(|l| l.amount).sum();
assert!( assert!(
sum_holds <= info.data.reserved, sum_holds <= info.data.reserved,
"Sum of all holds ({sum_holds}) should be less than or equal to reserved balance {}", "Sum of all holds ({sum_holds}) should be less than or equal to reserved balance {}",