Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Nov 8, 2024
1 parent fd98399 commit e87ae2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export class TokenComputer {
const parts = identifier.split("-");

const { prefix, ticker, randomSequence } = this.splitIdentifierIntoComponents(parts);
this.validateExtendedIdentifier(prefix, randomSequence, ticker, parts);
this.validateExtendedIdentifier(prefix, ticker, randomSequence, parts);

// If identifier is for a fungible token (2 parts or 3 with prefix), return 0
if (parts.length === 2 || (prefix && parts.length === 3)) {
Expand All @@ -253,7 +253,7 @@ export class TokenComputer {
const parts = identifier.split("-");
const { prefix, ticker, randomSequence } = this.splitIdentifierIntoComponents(parts);

this.validateExtendedIdentifier(prefix, randomSequence, ticker, parts);
this.validateExtendedIdentifier(prefix, ticker, randomSequence, parts);
if (prefix) {
this.checkLengthOfPrefix(prefix);
return prefix + "-" + ticker + "-" + randomSequence;
Expand Down

0 comments on commit e87ae2b

Please sign in to comment.