Slight terminology correction in sync test

Also correct a mistake from merging the most recent polkadot version.
This commit is contained in:
Luke Parker
2023-06-28 15:04:48 -04:00
parent 790fe7ee23
commit f6a497f3ac
3 changed files with 124 additions and 123 deletions

View File

@@ -1,3 +1,4 @@
use sp_core::sr25519::Public;
use serai_runtime::{
primitives::{SeraiAddress, SubstrateAmount, Amount, Coin, Balance},
assets::{AssetDetails, AssetAccount},
@@ -42,14 +43,14 @@ impl Serai {
) -> Result<Amount, SeraiError> {
Ok(Amount(
self
.storage::<AssetAccount<SubstrateAmount, SubstrateAmount, ()>>(
.storage::<AssetAccount<SubstrateAmount, SubstrateAmount, (), Public>>(
"Assets",
"Account",
Some(vec![scale_value(coin), scale_value(address)]),
block,
)
.await?
.map(|account| account.balance)
.map(|account| account.balance())
.unwrap_or(0),
))
}