Skip to content

Commit

Permalink
moar
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 16, 2023
1 parent edf76b0 commit b7ba5eb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sdk/tests/types/output/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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());
Expand Down
4 changes: 2 additions & 2 deletions sdk/tests/types/output/foundry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand All @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/types/output/nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/types/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)))
Expand Down

0 comments on commit b7ba5eb

Please sign in to comment.