From 30a4a95d173b72f4fded85b055f4b514107e42b2 Mon Sep 17 00:00:00 2001 From: Milosz Muszynski Date: Mon, 20 May 2024 12:08:06 +0200 Subject: [PATCH] stake-contract: moved applying economic mode to refund --- contracts/stake/tests/common/utils.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/contracts/stake/tests/common/utils.rs b/contracts/stake/tests/common/utils.rs index a7e82c8c96..8d01bed979 100644 --- a/contracts/stake/tests/common/utils.rs +++ b/contracts/stake/tests/common/utils.rs @@ -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; @@ -107,7 +110,12 @@ pub fn execute( .call::<_, ()>( TRANSFER_CONTRACT, "refund", - &(tx.fee, receipt.gas_spent), + &( + tx.fee, + receipt.gas_spent, + EconomicMode::None, + None::, + ), u64::MAX, ) .expect("Refunding must succeed");