diff --git a/sdk/tests/types/output/basic.rs b/sdk/tests/types/output/basic.rs index 59967e4c01..42268b7afe 100644 --- a/sdk/tests/types/output/basic.rs +++ b/sdk/tests/types/output/basic.rs @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 use iota_sdk::types::block::{ - output::{BasicOutput, Feature, FoundryId, MinimumOutputAmount, NativeToken, Output, SimpleTokenScheme, TokenId}, + output::{BasicOutput, Feature, FoundryId, MinimumOutputAmount, NativeToken, SimpleTokenScheme, TokenId}, protocol::protocol_parameters, rand::{ address::rand_account_address, @@ -27,7 +27,7 @@ fn builder() { let amount = 500_000; let mut builder = BasicOutput::build_with_amount(amount) - .add_native_token(NativeToken::new(TokenId::from(foundry_id), 1000).unwrap()) + .with_native_token(NativeToken::new(TokenId::from(foundry_id), 1000).unwrap()) .add_unlock_condition(address_1.clone()) .add_feature(sender_1.clone()) .replace_feature(sender_2.clone()); diff --git a/sdk/tests/types/output/foundry.rs b/sdk/tests/types/output/foundry.rs index 68b1a23ff2..f52388bbf3 100644 --- a/sdk/tests/types/output/foundry.rs +++ b/sdk/tests/types/output/foundry.rs @@ -4,7 +4,7 @@ use iota_sdk::types::block::{ output::{ unlock_condition::ImmutableAccountAddressUnlockCondition, FoundryId, FoundryOutput, MinimumOutputAmount, - NativeToken, Output, SimpleTokenScheme, TokenId, + NativeToken, SimpleTokenScheme, TokenId, }, protocol::protocol_parameters, rand::{ @@ -27,7 +27,7 @@ fn builder() { let mut builder = FoundryOutput::build_with_amount(amount, 234, rand_token_scheme()) .with_serial_number(85) - .add_native_token(NativeToken::new(TokenId::from(foundry_id), 1000).unwrap()) + .with_native_token(NativeToken::new(TokenId::from(foundry_id), 1000).unwrap()) .with_unlock_conditions([account_1]) .add_feature(metadata_1.clone()) .replace_feature(metadata_2.clone()) diff --git a/sdk/tests/types/output/nft.rs b/sdk/tests/types/output/nft.rs index 658bb05b96..5eb4322ecf 100644 --- a/sdk/tests/types/output/nft.rs +++ b/sdk/tests/types/output/nft.rs @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 use iota_sdk::types::block::{ - output::{NftId, NftOutput, Output, Rent}, + output::{MinimumOutputAmount, NftId, NftOutput}, protocol::protocol_parameters, rand::output::{ feature::{rand_issuer_feature, rand_sender_feature}, diff --git a/sdk/tests/types/transaction.rs b/sdk/tests/types/transaction.rs index 5e696ac391..de81bb75be 100644 --- a/sdk/tests/types/transaction.rs +++ b/sdk/tests/types/transaction.rs @@ -440,7 +440,7 @@ fn duplicate_output_foundry() { let foundry_id = FoundryId::build(&AccountAddress::from(account_id), 1, token_scheme.kind()); let token_id = TokenId::from(foundry_id); let foundry = FoundryOutput::build_with_amount(1_000_000, 1, token_scheme) - .add_native_token(NativeToken::new(token_id, 70).unwrap()) + .with_native_token(NativeToken::new(token_id, 70).unwrap()) .add_unlock_condition(ImmutableAccountAddressUnlockCondition::new(AccountAddress::from( account_id, )))