mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 03:17:56 +00:00
Fix workflow versions (#317)
This commit is contained in:
@@ -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: |
|
||||||
|
|||||||
@@ -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 {}",
|
||||||
|
|||||||
Reference in New Issue
Block a user