Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmt #130

Merged
merged 1 commit into from
Dec 24, 2024
Merged

fmt #130

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions client/tests/nft_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ use std::str::FromStr;
use num_bigint::BigUint;
use sha2::{Digest, Sha256};
use tokio_test::assert_ok;
use tonlib_client::contract::{
NftCollectionContract, NftItemContract, TonContractFactory,
};
use tonlib_client::contract::{NftCollectionContract, NftItemContract, TonContractFactory};
use tonlib_client::meta::MetaDataContent;
use tonlib_core::{TonAddress, TonHash};

Expand Down Expand Up @@ -67,9 +65,12 @@ async fn test_get_nft_data_is_valid() -> anyhow::Result<()> {
assert!(res.init);
assert_eq!(res.index, expected_index);
assert_eq!(res.collection_address, expected_collection_address);
assert_eq!(res.individual_content, MetaDataContent::External {
uri: "https://nft.fragment.com/number/88805397120.json".to_string(),
});
assert_eq!(
res.individual_content,
MetaDataContent::External {
uri: "https://nft.fragment.com/number/88805397120.json".to_string(),
}
);

Ok(())
}
Expand Down Expand Up @@ -109,9 +110,12 @@ async fn test_get_collection_data_is_valid() -> anyhow::Result<()> {
let res = assert_ok!(contract.get_collection_data().await);

assert_eq!(res.next_item_index, -1);
assert_eq!(res.collection_content, MetaDataContent::External {
uri: "https://nft.fragment.com/numbers.json".to_string(),
});
assert_eq!(
res.collection_content,
MetaDataContent::External {
uri: "https://nft.fragment.com/numbers.json".to_string(),
}
);
Ok(())
}

Expand Down
Loading