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

[Bug] ORML assets (native asset/asset with id 0) isn't read by tokens pallet #113

Open
AhmedKorim opened this issue Jan 26, 2022 · 0 comments
Labels
bug 🪲 Something isn't working p3 🔵 Issues should be resolved eventually

Comments

@AhmedKorim
Copy link
Contributor

Description

The Ecosystem of ORML assets and native balances seems not to work as expected, asset with id 0 is considered the native asset
, however, the tokens pallet doesn't read the balance it sticks to zero.
maybe that's because the pallet balance doesn't read the balance? as in Polkadot API, they have an example to read the balances they use the system pallet

The mixer seems to consume the native asset if it was created with asset=0

Expected vs. Actual Behavior

  • It's expected that the tokens pallet read native balance and it doesn't.
  • if there is an asset with id 0 the assetRegistery>nextAssetId should be 1.

Steps to Reproduce

  1. From a fresh main node, open substrate portal
  2. Try out the native asset or ORML asset with id =0
    • Transfer some funds from the account dropdown
    • Go to chain state it's expected to see the native balance of that account under tokens>accounts and set the id to 0 which isn't the case.
    • Go to chain state balances>accounts it's an empty balance still, to view the balance try system>account
    • Chain state assetRegistery>nextAssetId, it still 0 event though the 0 is preserved to the native asset
  3. Try out the native asset or ORML asset with id =1
    everything works as expected, the asset id jumps directly to 2

Environment

  • Operating system: MacOS
  • Template version/tag: 9d2408a
  • Rust version (run rustup show):
    nightly-2021-11-20-x86_64-apple-darwin (overridden by '/Users/ahmed/projects/edgeware/webb/darkwebb-substrate/rust-toolchain.toml')
    rustc 1.58.0-nightly (a77da2d45 2021-11-19
    Logs, Errors or Screenshots
@AhmedKorim AhmedKorim added the bug 🪲 Something isn't working label Jan 26, 2022
@AhmedKorim AhmedKorim changed the title [Bug] ORML assets (native asset/asset with id 0) isn't read by tokens [Bug] ORML assets (native asset/asset with id 0) isn't read by tokens pallet Jan 26, 2022
@dutterbutter dutterbutter added the p2 🟡 Issue should be resolved soon label Jan 31, 2022
@dutterbutter dutterbutter added p3 🔵 Issues should be resolved eventually and removed p2 🟡 Issue should be resolved soon labels Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working p3 🔵 Issues should be resolved eventually
Projects
Status: Not Started 🕧
Development

No branches or pull requests

3 participants