Skip to content
Commit 649be3aa authored by Branislav Kontur's avatar Branislav Kontur Committed by GitHub
Browse files

Asset conversion `get_pool_id` fix (`Ord` does not count with `is_native` flag) (#14572)



* Asset conversion `get_pool_id` fix (`Ord` does not count with `is_native` flag)

* Removed unnecessery clones + added `pool_account` to `PoolCreated` event

* Fix bench compile

* Fix bench

* Improved `MultiAssetIdConverter::try_convert`

* Removed `into_multiasset_id` from converter and moved to `BenchmarkHelper`

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_asset_conversion

* Fixed doc

* Typo

* Removed `NativeOrAssetId` (test/mock) impl from types.rs to mock.rs...

* Typo + 0u32 -> 0

* Update frame/asset-conversion/src/benchmarking.rs

Co-authored-by: default avatarJegor Sidorenko <[email protected]>

* Typo

* ".git/.scripts/commands/fmt/fmt.sh"

* Fix from Jegor

* Try to fix the other failing benchmark

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_asset_conversion

* Update frame/asset-conversion/src/lib.rs

Co-authored-by: default avatarjoe petrowski <[email protected]>

* Update frame/asset-conversion/src/types.rs

Co-authored-by: default avatarjoe petrowski <[email protected]>

* Update frame/transaction-payment/asset-conversion-tx-payment/src/mock.rs

Co-authored-by: default avatarjoe petrowski <[email protected]>

* Update frame/asset-conversion/src/mock.rs

Co-authored-by: default avatarjoe petrowski <[email protected]>

* Update bin/node/runtime/src/impls.rs

Co-authored-by: default avatarjoe petrowski <[email protected]>

* Update frame/asset-conversion/src/lib.rs

Co-authored-by: default avatarjoe petrowski <[email protected]>

* Update bin/node/runtime/src/impls.rs

Co-authored-by: default avatarjoe petrowski <[email protected]>

* Reverted NativeOrAssetId

---------

Co-authored-by: command-bot <>
Co-authored-by: default avatarJegor Sidorenko <[email protected]>
Co-authored-by: default avatarJegor Sidorenko <[email protected]>
Co-authored-by: default avatarjoe petrowski <[email protected]>
parent e71cca3c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment