Skip to content

Bug: ticker and name fields swapped in issueAssetNia code examples #46

Description

@Sertug17

Bug Description

In two documentation files, the issueAssetNia() code examples have the ticker and name fields reversed. The ticker field should contain a short symbol (e.g. 'USDT'), but it is set to a full name ('USD Token'), and vice versa for name.

Affected Files

  • product-suite/untitled-page.mdx (line 226)
  • getting-started/editor/sdk/utexo-sdk.mdx (line 211)

Current (Incorrect)

const asset = await wallet.issueAssetNia({
  ticker: 'USD Token',  // ← should be short symbol
  name: 'USDT',         // ← should be full name
  amounts: [1000, 500],
  precision: 6
});

Expected (Correct)

const asset = await wallet.issueAssetNia({
  ticker: 'USDT',
  name: 'USD Token',
  amounts: [1000, 500],
  precision: 6
});

Evidence

Five other files in the same repository use the correct field order, confirming this is a bug and not an intentional convention:

File ticker value name value Correct?
sdk/wdk-wallet-rgb.mdx:71 'MYTOKEN' 'My Token'
sdk/react-native-sdk.mdx:355 'DEMO' 'Demo Token'
sdk/web-sdk.mdx:140 'MYTOKEN' 'My Token'
sdk/wdk-wallet-rgb.mdx:198 'USDT' 'Test USDT'
sdk/rgb-sdk.mdx:248 'USDT' 'Tether USD'

Impact

Developers copying the example will create assets with a verbose ticker and a cryptic name, which may break UI rendering or downstream tooling that expects a short ticker symbol.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions