Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-magnet committed Nov 13, 2024
1 parent 0d3dc46 commit 83ef45d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 4 additions & 8 deletions packages/fuels-programs/src/calls/contract_call.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand All @@ -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
Expand All @@ -32,7 +28,7 @@ pub struct ContractCall {
}

impl ContractCall {
pub fn data(&self, base_asset_id: AssetId) -> Result<ContractCallData> {
pub(crate) fn data(&self, base_asset_id: AssetId) -> Result<ContractCallData> {
let encoded_args = self
.encoded_args
.as_ref()
Expand Down
4 changes: 2 additions & 2 deletions wasm-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 83ef45d

Please sign in to comment.