mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 01:38:04 +00:00
asset-conversion pallet: pool's AccountId derivation warn docs (#14811)
* pool_id docs * fmt
This commit is contained in:
@@ -66,7 +66,11 @@ fn pool_assets() -> Vec<u32> {
|
||||
|
||||
fn create_tokens(owner: u128, tokens: Vec<NativeOrAssetId<u32>>) {
|
||||
for token_id in tokens {
|
||||
let MultiAssetIdConversionResult::Converted(asset_id) = NativeOrAssetIdConverter::try_convert(&token_id) else { unreachable!("invalid token") };
|
||||
let MultiAssetIdConversionResult::Converted(asset_id) =
|
||||
NativeOrAssetIdConverter::try_convert(&token_id)
|
||||
else {
|
||||
unreachable!("invalid token")
|
||||
};
|
||||
assert_ok!(Assets::force_create(RuntimeOrigin::root(), asset_id, owner, false, 1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user