From 0ecc2be4d84c1e36a89eb18859e4ea7253c21f60 Mon Sep 17 00:00:00 2001 From: Milosz Muszynski Date: Wed, 17 Jul 2024 11:33:22 +0200 Subject: [PATCH] test-wallet: renamed contract execution --- test-wallet/src/imp.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test-wallet/src/imp.rs b/test-wallet/src/imp.rs index 19f392c976..69e8d1cc16 100644 --- a/test-wallet/src/imp.rs +++ b/test-wallet/src/imp.rs @@ -16,7 +16,7 @@ use alloc::vec::Vec; use dusk_bytes::Error as BytesError; use execution_core::{ stake::{Stake, Unstake, Withdraw}, - transfer::{CallOrDeploy, ContractCall, Fee, Payload, Transaction}, + transfer::{ContractCall, ContractExec, Fee, Payload, Transaction}, BlsPublicKey as StakePublicKey, BlsScalar, JubJubScalar, Note, PhoenixError, PublicKey, SchnorrSecretKey, SecretKey, TxSkeleton, ViewKey, OUTPUT_NOTES, @@ -343,7 +343,7 @@ where pub fn execute( &self, rng: &mut Rng, - call_or_deploy: CallOrDeploy, + call_or_deploy: ContractExec, sender_index: u64, gas_limit: u64, gas_price: u64, @@ -505,7 +505,7 @@ where outputs, fee, value, - Some(CallOrDeploy::Call(contract_call)), + Some(ContractExec::Call(contract_call)), ) .map_err(Error::from_state_err)?; @@ -589,7 +589,7 @@ where outputs, fee, deposit, - Some(CallOrDeploy::Call(call)), + Some(ContractExec::Call(call)), ) .map_err(Error::from_state_err)?; @@ -674,7 +674,7 @@ where outputs, fee, deposit, - Some(CallOrDeploy::Call(call)), + Some(ContractExec::Call(call)), ) .map_err(Error::from_state_err)?; @@ -740,7 +740,7 @@ fn new_unproven_tx( outputs: [(Note, u64, JubJubScalar, [JubJubScalar; 2]); OUTPUT_NOTES], fee: Fee, deposit: u64, - call_or_deploy: Option, + call_or_deploy: Option, ) -> Result { let nullifiers: Vec = inputs .iter()