Skip to content

Commit

Permalink
stake-contract: moved applying economic mode to refund
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm committed May 22, 2024
1 parent ea935f7 commit 30a4a95
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions contracts/stake/tests/common/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ use dusk_plonk::prelude::*;
use phoenix_core::transaction::{TreeLeaf, TRANSFER_TREE_DEPTH};
use phoenix_core::{Note, Transaction, ViewKey};
use poseidon_merkle::Opening as PoseidonOpening;
use rusk_abi::{CallReceipt, ContractError, Error, Session, TRANSFER_CONTRACT};
use rusk_abi::{
CallReceipt, ContractError, ContractId, EconomicMode, Error, Session,
TRANSFER_CONTRACT,
};

const POINT_LIMIT: u64 = 0x100000000;

Expand Down Expand Up @@ -107,7 +110,12 @@ pub fn execute(
.call::<_, ()>(
TRANSFER_CONTRACT,
"refund",
&(tx.fee, receipt.gas_spent),
&(
tx.fee,
receipt.gas_spent,
EconomicMode::None,
None::<ContractId>,
),
u64::MAX,
)
.expect("Refunding must succeed");
Expand Down

0 comments on commit 30a4a95

Please sign in to comment.