Commit eb1506a
[pallet-assets-precompiles] add foreign assets instance to kitchensink (#11460)
## Summary
- Set `CallbackHandle =
(pallet_assets_precompiles::ForeignAssetId<Runtime, Instance1>,)`
in `pallet_assets::Config<Instance1>` for the kitchensink runtime.
- Asset creation (`create`, `force_create`) now automatically populates
a sequential
foreign asset index mapping. Asset destruction cleans it up.
## Test plan
- [x] Run [end-to-end
tests](paritytech/evm-test-suite#142) (requires
substrate-node, eth-rpc, node, cast)
- [x] Revert CallbackHandle to `()` and confirm end-to-end tests fail
Alternatively run this bashscript for testing:
https://gist.github.com/0xRVE/99bbc5ec7fcabeb54e3b797bd4cc97c8
---------
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent 4afd7bd commit eb1506a
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1908 | 1908 | | |
1909 | 1909 | | |
1910 | 1910 | | |
1911 | | - | |
| 1911 | + | |
1912 | 1912 | | |
1913 | 1913 | | |
1914 | 1914 | | |
| |||
0 commit comments