Skip to content

Commit dd4fa85

Browse files
committed
Updates PGF balance on foreing fee payment
1 parent 23b8648 commit dd4fa85

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

shared/src/block.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,18 @@ impl Block {
708708
wrapper_tx.fee.gas_payer.clone(),
709709
Token::Native(wrapper_tx.fee.gas_token.clone()),
710710
));
711-
// If the token is not the native one also push the balanche
712-
// change of the block proposer (the balance change for the
713-
// native token is pushed by default)
711+
712+
// If the token is not the native one also push the balance
713+
// change of PGF (fee reserve) and the block proposer (the
714+
// balance change for the native token is pushed by default)
714715
if &wrapper_tx.fee.gas_token != native_token {
716+
balance_changes.push(BalanceChange::new(
717+
Id::from(namada_sdk::address::Address::Internal(
718+
namada_sdk::address::InternalAddress::Pgf,
719+
)),
720+
Token::Native(wrapper_tx.fee.gas_token.clone()),
721+
));
722+
715723
if let Some(block_proposer) =
716724
&self.header.proposer_address_namada
717725
{

0 commit comments

Comments
 (0)