mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
Fix TransactAsset Implementation (#3345)
* convert local AssetNotFound errors into XcmError::AssetNotFound aims allow the tuple implementation of TransactAsset to iterate properly * add more XcmError descriptions * adjust the rest of the TransactAsset tuple implementation to the behavior of can_check_in * fix copy paste errors * keep iterating tuple on Unimplemented error in TransactAsset * add tests for tuple implementation of TransactAsset * Update xcm/src/v0/traits.rs Co-authored-by: Andronik Ordian <write@reusable.software> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
@@ -37,7 +37,7 @@ impl From<Error> for XcmError {
|
||||
fn from(e: Error) -> Self {
|
||||
use XcmError::FailedToTransactAsset;
|
||||
match e {
|
||||
Error::AssetNotFound => FailedToTransactAsset("AssetNotFound"),
|
||||
Error::AssetNotFound => XcmError::AssetNotFound,
|
||||
Error::AccountIdConversionFailed => FailedToTransactAsset("AccountIdConversionFailed"),
|
||||
Error::AmountToBalanceConversionFailed => FailedToTransactAsset("AmountToBalanceConversionFailed"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user