Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Coats committed Nov 13, 2023
1 parent b29a709 commit c9f95e6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sdk/tests/types/output/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn builder() {

assert_eq!(
output.amount(),
Output::Account(output.clone()).minimum_amount(protocol_parameters.storage_score_parameters())
output.minimum_amount(protocol_parameters.storage_score_parameters())
);
assert_eq!(output.features().metadata(), Some(&metadata));
assert_eq!(output.features().sender(), Some(&sender_1));
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/types/output/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn builder() {

assert_eq!(
output.amount(),
Output::Basic(output.clone()).minimum_amount(protocol_parameters.storage_score_parameters())
output.minimum_amount(protocol_parameters.storage_score_parameters())
);
assert_eq!(output.features().metadata(), Some(&metadata));
assert_eq!(output.features().sender(), Some(&sender_1));
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/types/output/foundry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn builder() {

assert_eq!(
output.amount(),
Output::Foundry(output).minimum_amount(protocol_parameters.storage_score_parameters())
output.minimum_amount(protocol_parameters.storage_score_parameters())
);
}

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 @@ -60,7 +60,7 @@ fn builder() {

assert_eq!(
output.amount(),
Output::Nft(output).minimum_amount(protocol_parameters.storage_score_parameters())
output.minimum_amount(protocol_parameters.storage_score_parameters())
);
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/tests/wallet/output_preparation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ async fn output_preparation() -> Result<()> {
)
.await?;
let storage_score_params = wallet.client().get_storage_score_parameters().await?;
let minimum_storage_deposit = output.minimum_amount(storage_score_params);
assert_eq!(output.amount(), minimum_storage_deposit);
let minimum_amount = output.minimum_amount(storage_score_params);
assert_eq!(output.amount(), minimum_amount);
assert_eq!(output.amount(), 187900);
let sdr = output.unlock_conditions().unwrap().storage_deposit_return().unwrap();
assert_eq!(sdr.amount(), 145300);
Expand Down

0 comments on commit c9f95e6

Please sign in to comment.