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

treasury.spend() assumes native token UNIT even though it should be u128 #11070

Closed
1 of 10 tasks
clangenb opened this issue Nov 7, 2024 · 0 comments · Fixed by #11265
Closed
1 of 10 tasks

treasury.spend() assumes native token UNIT even though it should be u128 #11070

clangenb opened this issue Nov 7, 2024 · 0 comments · Fixed by #11265

Comments

@clangenb
Copy link
Contributor

clangenb commented Nov 7, 2024

  • I'm submitting a ...
  • Bug report
  • Feature request
  • Support request
  • Other
  • What is the current behavior and expected behavior?

When I want to submit a treasurySpend with a non-native asset, the number of decimals is messed up because the UI assumes that it is the native currency:

image

  • What is the motivation for changing the behavior?
  • Please tell us about your environment:
  • Version:

  • Environment:

    • Node.js
    • Browser
    • Other (limited support for other environments)
  • Language:

    • JavaScript
    • TypeScript (include tsc --version)
    • Other
@ap211unitech ap211unitech linked a pull request Feb 5, 2025 that will close this issue
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 a pull request may close this issue.

1 participant