From 83ef45d127c00ad074172b9349aacadfa8accaf7 Mon Sep 17 00:00:00 2001 From: Ahmed Sagdati Date: Wed, 13 Nov 2024 22:19:34 +0900 Subject: [PATCH] cleanup --- packages/fuels-programs/src/calls/contract_call.rs | 12 ++++-------- wasm-tests/src/lib.rs | 4 ++-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/fuels-programs/src/calls/contract_call.rs b/packages/fuels-programs/src/calls/contract_call.rs index 609bc3272..f307d988d 100644 --- a/packages/fuels-programs/src/calls/contract_call.rs +++ b/packages/fuels-programs/src/calls/contract_call.rs @@ -1,9 +1,8 @@ use std::{collections::HashMap, fmt::Debug}; -use fuel_asm::Word; -use fuel_tx::{AssetId, ContractId}; +use fuel_tx::AssetId; use fuels_core::{ - constants::{DEFAULT_CALL_PARAMS_AMOUNT, WORD_SIZE}, + constants::DEFAULT_CALL_PARAMS_AMOUNT, error, types::{ bech32::{Bech32Address, Bech32ContractId}, @@ -13,10 +12,7 @@ use fuels_core::{ }, }; -use crate::{ - assembly::{contract_call::ContractCallData, cursor::WasmFriendlyCursor}, - calls::utils::sealed, -}; +use crate::{assembly::contract_call::ContractCallData, calls::utils::sealed}; #[derive(Debug, Clone)] /// Contains all data relevant to a single contract call @@ -32,7 +28,7 @@ pub struct ContractCall { } impl ContractCall { - pub fn data(&self, base_asset_id: AssetId) -> Result { + pub(crate) fn data(&self, base_asset_id: AssetId) -> Result { let encoded_args = self .encoded_args .as_ref() diff --git a/wasm-tests/src/lib.rs b/wasm-tests/src/lib.rs index 207907170..c3ad47ec9 100644 --- a/wasm-tests/src/lib.rs +++ b/wasm-tests/src/lib.rs @@ -10,9 +10,9 @@ mod tests { core::{codec::ABIEncoder, traits::Tokenizable}, macros::wasm_abigen, programs::debug::{parse_script, ScriptType}, - types::{bech32::Bech32Address, errors::Result, AssetId, ContractId}, + types::{bech32::Bech32Address, errors::Result, AssetId}, }; - use fuels_core::codec::abi_formatter::{self, ABIFormatter}; + use fuels_core::codec::abi_formatter::{ABIFormatter}; use wasm_bindgen_test::wasm_bindgen_test; #[wasm_bindgen_test]