Skip to content

Commit

Permalink
bypass account permission for benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Sep 22, 2023
1 parent d6eafbd commit b80e42c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/altair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,7 @@ impl<
),
};

if is_tranche_investor {
if is_tranche_investor || cfg!(feature = "runtime-benchmarks") {
Ok(())
} else {
// TODO: We should adapt the permissions pallets interface to return an error
Expand Down
2 changes: 1 addition & 1 deletion runtime/centrifuge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ impl<
),
};

if is_tranche_investor {
if is_tranche_investor || cfg!(feature = "runtime-benchmarks") {
Ok(())
} else {
// TODO: We should adapt the permissions pallets interface to return an error
Expand Down
2 changes: 1 addition & 1 deletion runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ impl<
),
};

if is_tranche_investor {
if is_tranche_investor || cfg!(feature = "runtime-benchmarks") {
Ok(())
} else {
// TODO: We should adapt the permissions pallets interface to return an error
Expand Down

0 comments on commit b80e42c

Please sign in to comment.