Skip to content

Commit

Permalink
Merge branch 'yuji/fix-dry-run-writelog' (#3359)
Browse files Browse the repository at this point in the history
* origin/yuji/fix-dry-run-writelog:
  changelog
  fix write log when dry-run
  • Loading branch information
brentstone committed Jun 5, 2024
2 parents 4dd9bbd + 45b72a2 commit db4412e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .changelog/unreleased/bug-fixes/3358-fix-dry-run-writelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix to clear the write log when dry-run batched transaction
([\#3358](https://github.com/anoma/namada/issues/3358))
2 changes: 1 addition & 1 deletion .github/workflows/scripts/hermes.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8.2-namada-beta11-rc
1.8.2-namada-beta11-rc2
6 changes: 6 additions & 0 deletions crates/namada/src/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ mod dry_run_tx {
&mut ctx.tx_wasm_cache,
),
);
let is_accepted = matches!(&batched_tx_result, Ok(result) if result.is_accepted());
if is_accepted {
temp_state.write_log_mut().commit_tx_to_batch();
} else {
temp_state.write_log_mut().drop_tx();
}
tx_result
.batch_results
.0
Expand Down
6 changes: 3 additions & 3 deletions scripts/get_hermes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

set -Eo pipefail

HERMES_MAJORMINOR="1.7"
HERMES_PATCH="4"
HERMES_SUFFIX="-namada-beta7"
HERMES_MAJORMINOR="1.8"
HERMES_PATCH="2"
HERMES_SUFFIX="-namada-beta11-rc2"

HERMES_REPO="https://github.com/heliaxdev/hermes"

Expand Down

0 comments on commit db4412e

Please sign in to comment.