Implement transfer_asset on CurrencyAdapter (#4549)
* Implement transfer_asset on CurrencyAdapter
* Use Currency::transfer in transfer_asset
* Add a test to assert that Currency::transfer was indeed used
* Remove superfluous balance conversion to u128
* Rename transfer_asset and beam_asset
Co-authored-by:
Giles Cope <gilescope@gmail.com>
Showing
- polkadot/xcm/xcm-builder/src/currency_adapter.rs 22 additions, 16 deletionspolkadot/xcm/xcm-builder/src/currency_adapter.rs
- polkadot/xcm/xcm-builder/src/fungibles_adapter.rs 4 additions, 4 deletionspolkadot/xcm/xcm-builder/src/fungibles_adapter.rs
- polkadot/xcm/xcm-builder/tests/mock/mod.rs 3 additions, 1 deletionpolkadot/xcm/xcm-builder/tests/mock/mod.rs
- polkadot/xcm/xcm-builder/tests/scenarios.rs 32 additions, 1 deletionpolkadot/xcm/xcm-builder/tests/scenarios.rs
- polkadot/xcm/xcm-executor/src/lib.rs 2 additions, 2 deletionspolkadot/xcm/xcm-executor/src/lib.rs
- polkadot/xcm/xcm-executor/src/traits/transact_asset.rs 17 additions, 10 deletionspolkadot/xcm/xcm-executor/src/traits/transact_asset.rs
Please register or sign in to comment