mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Changed query_account_balances return type (#2455)
This commit is contained in:
@@ -31,11 +31,16 @@ pub enum FungiblesAccessError {
|
||||
|
||||
sp_api::decl_runtime_apis! {
|
||||
/// The API for querying account's balances from runtime.
|
||||
#[api_version(2)]
|
||||
pub trait FungiblesApi<AccountId>
|
||||
where
|
||||
AccountId: Codec,
|
||||
{
|
||||
/// Returns the list of all [`MultiAsset`] that an `AccountId` has.
|
||||
#[changed_in(2)]
|
||||
fn query_account_balances(account: AccountId) -> Result<Vec<MultiAsset>, FungiblesAccessError>;
|
||||
|
||||
/// Returns the list of all [`MultiAsset`] that an `AccountId` has.
|
||||
fn query_account_balances(account: AccountId) -> Result<xcm::VersionedMultiAssets, FungiblesAccessError>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user