Skip to content

Commit

Permalink
Make token symbol capital in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldizsar Mezei committed Oct 4, 2023
1 parent 2ca77c8 commit 5dad1a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/functions/src/utils/car.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,5 @@ export const tokenToIpfsMetadata = (token: Token) => ({
space: token.space,
platform: KEY_NAME_TANGLE,
uid: token.uid,
symbol: token.symbol.toUpperCase(),
});
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const tokenToFoundryMetadata = async (token: Token) => {
logoUrl: 'ipfs://' + (token.ipfsMedia || PLACEHOLDER_CID),
issuerName: KEY_NAME_TANGLE,
build5Id: token.uid,
symbol: token.symbol.toLowerCase(),
symbol: token.symbol.toUpperCase(),
decimals: token.decimals,
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('Token minting', () => {
expect(metadata.logoUrl).toBeDefined();
expect(metadata.issuerName).toBe(KEY_NAME_TANGLE);
expect(metadata.build5Id).toBe(helper.token.uid);
expect(metadata.symbol).toBe(helper.token.symbol.toLowerCase());
expect(metadata.symbol).toBe(helper.token.symbol.toUpperCase());
expect(metadata.decimals).toBe(5);
});
});

0 comments on commit 5dad1a7

Please sign in to comment.