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

Update token ticker validation rules #573

Merged
merged 5 commits into from
Feb 13, 2025

Conversation

danielailie
Copy link
Contributor

No description provided.

@danielailie danielailie self-assigned this Feb 13, 2025
package.json Outdated
@@ -81,4 +81,4 @@
"@multiversx/sdk-bls-wasm": "0.3.5",
"bip39": "3.1.0"
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add empty line

@@ -46,6 +46,22 @@ describe("test tokens and token computer", async () => {
const fungibleTokenIdentifier = "FNG-123456";
identifier = tokenComputer.extractIdentifierFromExtendedIdentifier(fungibleTokenIdentifier);
assert.equal(identifier, "FNG-123456");

const numericTokenTicker = "2024-45a190";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we double check if lowercase ticker is accepted on the network?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, thank you.

@andreibancioiu andreibancioiu changed the title Update token ticker validatio rules Update token ticker validation rules Feb 13, 2025
@@ -46,6 +46,22 @@ describe("test tokens and token computer", async () => {
const fungibleTokenIdentifier = "FNG-123456";
identifier = tokenComputer.extractIdentifierFromExtendedIdentifier(fungibleTokenIdentifier);
assert.equal(identifier, "FNG-123456");

const numericTokenTicker = "2024-45a190";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use a more artificial example (not the token from mainnet).

@@ -46,6 +46,22 @@ describe("test tokens and token computer", async () => {
const fungibleTokenIdentifier = "FNG-123456";
identifier = tokenComputer.extractIdentifierFromExtendedIdentifier(fungibleTokenIdentifier);
assert.equal(identifier, "FNG-123456");

const numericTokenTicker = "2024-45a190";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danielailie danielailie merged commit a0ab266 into main Feb 13, 2025
4 checks passed
@danielailie danielailie deleted the TOOL-472-update-validation-for-token-ticker branch February 13, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants