You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
From a fresh main node, open substrate portal
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
Try out the native asset or ORML asset with id =1
everything works as expected, the asset id jumps directly to 2
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
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
palletThe mixer seems to consume the native asset if it was created with
asset=0
Expected vs. Actual Behavior
assetRegistery>nextAssetId
should be 1.Steps to Reproduce
tokens>accounts
and set the id to 0 which isn't the case.balances>accounts
it's an empty balance still, to view the balance trysystem>account
assetRegistery>nextAssetId
, it still0
event though the 0 is preserved to the native asseteverything works as expected, the asset id jumps directly to
2
Environment
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
The text was updated successfully, but these errors were encountered: