Skip to content

Commit

Permalink
rusk: renamed contract execution
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm committed Jul 17, 2024
1 parent cf4313a commit c3a2dc5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions rusk/tests/services/contract_deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::path::{Path, PathBuf};
use std::sync::{Arc, RwLock};

use execution_core::bytecode::Bytecode;
use execution_core::transfer::{CallOrDeploy, ContractDeploy};
use execution_core::transfer::{ContractDeploy, ContractExec};
use rand::prelude::*;
use rand::rngs::StdRng;
use rusk::{Result, Rusk};
Expand Down Expand Up @@ -115,7 +115,7 @@ fn make_and_execute_transaction_deploy(
let tx = wallet
.execute(
&mut rng,
CallOrDeploy::Deploy(ContractDeploy {
ContractExec::Deploy(ContractDeploy {
bytecode: Bytecode {
hash,
bytes: bytecode.as_ref().to_vec(),
Expand Down
6 changes: 3 additions & 3 deletions rusk/tests/services/gas_behavior.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::collections::HashMap;
use std::path::Path;
use std::sync::{Arc, RwLock};

use execution_core::transfer::{CallOrDeploy, ContractCall};
use execution_core::transfer::{ContractCall, ContractExec};
use rand::prelude::*;
use rand::rngs::StdRng;
use rusk::{Result, Rusk};
Expand Down Expand Up @@ -75,7 +75,7 @@ fn make_transactions(
let tx_0 = wallet
.execute(
&mut rng,
CallOrDeploy::Call(contract_call.clone()),
ContractExec::Call(contract_call.clone()),
SENDER_INDEX_0,
GAS_LIMIT_0,
1,
Expand All @@ -89,7 +89,7 @@ fn make_transactions(
let tx_1 = wallet
.execute(
&mut rng,
CallOrDeploy::Call(contract_call),
ContractExec::Call(contract_call),
SENDER_INDEX_1,
GAS_LIMIT_1,
1,
Expand Down
4 changes: 2 additions & 2 deletions rusk/tests/services/stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::path::Path;
use std::sync::{Arc, RwLock};

use execution_core::{
transfer::{CallOrDeploy, ContractCall},
transfer::{ContractCall, ContractExec},
StakePublicKey,
};
use rand::prelude::*;
Expand Down Expand Up @@ -205,7 +205,7 @@ fn wallet_reward(
let tx = wallet
.execute(
&mut rng,
CallOrDeploy::Call(contract_call),
ContractExec::Call(contract_call),
0,
GAS_LIMIT,
1,
Expand Down
8 changes: 4 additions & 4 deletions rusk/tests/services/unspendable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::collections::HashMap;
use std::path::Path;
use std::sync::{Arc, RwLock};

use execution_core::transfer::{CallOrDeploy, ContractCall};
use execution_core::transfer::{ContractCall, ContractExec};
use rand::prelude::*;
use rand::rngs::StdRng;
use rusk::{Result, Rusk};
Expand Down Expand Up @@ -87,7 +87,7 @@ fn make_transactions(
let tx_0 = wallet
.execute(
&mut rng,
CallOrDeploy::Call(contract_call.clone()),
ContractExec::Call(contract_call.clone()),
SENDER_INDEX_0,
GAS_LIMIT_0,
1,
Expand All @@ -101,7 +101,7 @@ fn make_transactions(
let tx_1 = wallet
.execute(
&mut rng,
CallOrDeploy::Call(contract_call.clone()),
ContractExec::Call(contract_call.clone()),
SENDER_INDEX_1,
GAS_LIMIT_1,
1,
Expand All @@ -115,7 +115,7 @@ fn make_transactions(
let tx_2 = wallet
.execute(
&mut rng,
CallOrDeploy::Call(contract_call),
ContractExec::Call(contract_call),
SENDER_INDEX_2,
GAS_LIMIT_2,
1,
Expand Down

0 comments on commit c3a2dc5

Please sign in to comment.