git.delta.rocks / unique-network / refs/commits / fbb698d4202e

difftreelog

test(app-promo) fixed `get_frozen()` behaviour

PraetorP2023-05-30parent: #e992923.patch.diff
in: master

1 file changed

modifiedtests/src/util/playgrounds/unique.tsdiffbeforeafterboth
2401 }2401 }
2402 async getFrozen(address: TSubstrateAccount): Promise<{ id: string, amount: bigint }[]> {2402 async getFrozen(address: TSubstrateAccount): Promise<{ id: string, amount: bigint }[]> {
2403 const locks = await this.helper.api!.query.balances.freezes(address);2403 const locks = await this.helper.api!.query.balances.freezes(address);
2404 return locks.map(lock => ({id: lock.id.toString(), amount: lock.amount.toBigInt()}));2404 return locks.map(lock => ({id: lock.id.toUtf8(), amount: lock.amount.toBigInt()}));
2405 }2405 }
2406}2406}
24072407