Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce fee payment #3294

Merged
merged 15 commits into from
May 31, 2024
Merged
2 changes: 2 additions & 0 deletions .changelog/unreleased/bug-fixes/3075-force-fee-payment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fixed the fee collection logic in `finalize_block` to match that of
`process_proposal`. ([\#3075](https://github.com/anoma/namada/issues/3075))
10 changes: 3 additions & 7 deletions crates/namada/src/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,11 @@ mod dry_run_tx {
Gas::try_from(wrapper.gas_limit).into_storage_result()?;
let tx_gas_meter = RefCell::new(TxGasMeter::new(gas_limit));
let tx_result = protocol::apply_wrapper_tx(
tx.clone(),
&tx,
&wrapper,
&request.data,
ShellParams::new(
&tx_gas_meter,
&mut temp_state,
&mut ctx.vp_wasm_cache,
&mut ctx.tx_wasm_cache,
),
&tx_gas_meter,
&mut temp_state,
None,
)
.into_storage_result()?;
Expand Down
Loading
Loading