Skip to content

Commit

Permalink
resolve comments and fix fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagaprasadvr committed Nov 28, 2024
1 parent bb2f67e commit 8d592c7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 198 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ expression: response
snapshot_kind: text
---
{
"interface": "Custom",
"interface": "FungibleToken",
"id": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"content": {
"$schema": "https://schema.metaplex.com/nft1.0.json",
Expand Down

This file was deleted.

This file was deleted.

8 changes: 8 additions & 0 deletions program_transformers/src/token_metadata/v1_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ pub async fn save_v1_asset<T: ConnectionTrait + TransactionTrait>(
};
};

//Map specification asset class based on the supply.
if class == SpecificationAssetClass::Unknown {
class = match supply {
s if s > Decimal::from(1) => SpecificationAssetClass::FungibleToken,
_ => SpecificationAssetClass::Unknown,
};
};

if (ownership_type == OwnerType::Single) | (ownership_type == OwnerType::Unknown) {
index_token_account_data(conn, mint_pubkey_vec.clone()).await?;
}
Expand Down

0 comments on commit 8d592c7

Please sign in to comment.