Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions prdoc/pr_11460.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
title: '[pallet-assets-precompiles] add foreign assets instance to kitchensink'
doc:
- audience: Runtime Dev
description: |-
## 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](https://github.com/paritytech/evm-test-suite/pull/142) (requires substrate-node, eth-rpc, node, cast)
- [x] Revert CallbackHandle to `()` and confirm end-to-end tests fail
crates: []
2 changes: 1 addition & 1 deletion substrate/bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@ impl pallet_assets::Config<Instance1> for Runtime {
type Holder = ();
type Freezer = ();
type Extra = ();
type CallbackHandle = ();
type CallbackHandle = (pallet_assets_precompiles::ForeignAssetId<Runtime, Instance1>,);
type WeightInfo = pallet_assets::weights::SubstrateWeight<Runtime>;
type RemoveItemsLimit = ConstU32<1000>;
#[cfg(feature = "runtime-benchmarks")]
Expand Down
Loading