Skip to content

Commit

Permalink
Merge pull request #2607 from build-5/impr/2604-iota-stardust
Browse files Browse the repository at this point in the history
#2604 - Make token symbol capital in metadata
  • Loading branch information
adamunchained authored Oct 4, 2023
2 parents 2ca77c8 + 8ebdd70 commit 67403f3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/functions/src/services/wallet/wallet.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const NODES = {
'https://us4.svrs.io/',
'https://hs5.svrs.io/',
'https://hs6.svrs.io/',
'https://chrysalis-nodes.iota.org',
],
[Network.ATOI]: ['https://devnet.svrs.io/'],
};
Expand Down
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 67403f3

Please sign in to comment.