Skip to content

Commit

Permalink
fixup! Merge branch 'yuji/fix-ibc-amount' (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Sep 6, 2023
1 parent 15ff38b commit 5b89b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/src/ledger/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ pub async fn build_ibc_transfer<
let tx_source_balance = Some(TxSourcePostBalance {
post_balance,
source: source.clone(),
token: token.clone(),
token: args.token.clone(),
});

let tx_code_hash =
Expand Down
2 changes: 1 addition & 1 deletion shared/src/vm/host_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ where
.memory
.read_string(event_type_ptr, event_type_len as _)
.map_err(|e| TxRuntimeError::MemoryError(Box::new(e)))?;
tx_add_gas(env, gas)?;
tx_charge_gas(env, gas)?;
let write_log = unsafe { env.ctx.write_log.get() };
for event in write_log.get_ibc_events() {
if event.event_type == event_type {
Expand Down

0 comments on commit 5b89b81

Please sign in to comment.