This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When assets are registered or unregistered, some chains need to do additional updates on their storage. Having injectable callback functions by using traits in pallet-assets increases its extensibility.
For example, all EVM chains need to add
RevertCodetopallet_evm::AccountCodeswhen new assets added to pallet-assets (when deregistering, RevertCode removal needed).Otherwise, smart contracts cannot access to assets in pallet-assets via precompiles.
Other usecases for having additional logic when assets are registered/deregistered can be considered.
Allowing this is possible by having a trait in pallet's Config.
All reactions