Skip to content

Commit

Permalink
Restructure a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchTurner committed Oct 17, 2023
1 parent d240e36 commit 8f4ca58
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ use fuel_core_types::{
fuel_types::AssetId,
};

#[path = "utils.rs"]
#[path = "../utils.rs"]
mod utils;

#[path = "block_target_gas/alu.rs"]
mod alu;

use utils::{
Expand Down Expand Up @@ -93,17 +92,17 @@ fn run(
script.clone().into_iter().collect(),
script_data.clone(),
)
.gas_limit(TARGET_BLOCK_GAS_LIMIT - BASE)
.gas_price(1)
.add_unsigned_coin_input(
SecretKey::random(&mut rng),
rng.gen(),
u64::MAX,
AssetId::BASE,
Default::default(),
Default::default(),
)
.finalize_as_transaction();
.gas_limit(TARGET_BLOCK_GAS_LIMIT - BASE)
.gas_price(1)
.add_unsigned_coin_input(
SecretKey::random(&mut rng),
rng.gen(),
u64::MAX,
AssetId::BASE,
Default::default(),
Default::default(),
)
.finalize_as_transaction();
async move {
let tx_id = tx.id(&config.chain_conf.consensus_parameters.chain_id);

Expand Down
5 changes: 1 addition & 4 deletions benches/benches/set/alu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ use fuel_core_types::fuel_asm::wideint::{
MulArgs,
};

#[path = "../utils.rs"]
mod utils;

use utils::{
use super::utils::{
make_u128,
make_u256,
};
Expand Down
1 change: 1 addition & 0 deletions benches/benches/set/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub mod mem;

pub use super::run_group_ref;

use super::utils;
use core::iter::successors;

fn generate_linear_costs() -> Vec<u32> {
Expand Down
3 changes: 2 additions & 1 deletion benches/benches/vm.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pub mod set;
mod set;
mod utils;

use criterion::{
black_box,
Expand Down

0 comments on commit 8f4ca58

Please sign in to comment.