Skip to content

Commit

Permalink
evil: update bench tx env for claim_rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Nov 10, 2023
1 parent e3a9cd9 commit 3033b6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benches/txs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -995,8 +995,9 @@ fn reactivate_validator(c: &mut Criterion) {

fn claim_rewards(c: &mut Criterion) {
let mut group = c.benchmark_group("claim_rewards");
let shell = BenchShell::default();

let claim = generate_tx(
let claim = shell.generate_tx(
TX_CLAIM_REWARDS_WASM,
Withdraw {
validator: defaults::validator_address(),
Expand All @@ -1007,7 +1008,7 @@ fn claim_rewards(c: &mut Criterion) {
Some(&defaults::albert_keypair()),
);

let self_claim = generate_tx(
let self_claim = shell.generate_tx(
TX_CLAIM_REWARDS_WASM,
Withdraw {
validator: defaults::validator_address(),
Expand Down

0 comments on commit 3033b6d

Please sign in to comment.