Skip to content

Commit

Permalink
Get old value in set_storage call in benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
smiasojed committed Jul 17, 2024
1 parent c1d7879 commit 7f378ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions substrate/frame/contracts/src/benchmarking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ mod benchmarks {
let result;
#[block]
{
result = info.bench_write_raw(&key, val, false);
result = info.bench_write_raw(&key, val, true);
}

assert_ok!(result);
Expand Down Expand Up @@ -1144,7 +1144,7 @@ mod benchmarks {
let result;
#[block]
{
result = info.bench_write_raw(&key, val, false);
result = info.bench_write_raw(&key, val, true);
}

assert_ok!(result);
Expand Down

0 comments on commit 7f378ae

Please sign in to comment.