Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed May 29, 2024
1 parent bb5b91d commit ccbac5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/service/substrate_api/encointer/encointer_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ class EncointerApi {
Log.d('[getProposalPurposeIds] ProposalIds: $proposalIds)}');

final purposeIds = await Future.wait(proposalIds.map(
(key) => encointerKusama.query.encointerDemocracy
(key) => encointerKusama.query.encointerDemocracy
.purposeIds(key, at: at ?? store.chain.latestHash)
// We know that the tally exists because we fetched the keys before.
.then((maybePurposeId) => maybePurposeId!),
Expand All @@ -795,7 +795,7 @@ class EncointerApi {
final c = count ?? BigInt.one;
final lowerBound = max(0, (from - c).toInt());

final proposalIds = [for(var i=from.toInt(); i > lowerBound; i-=1) BigInt.from(i)];
final proposalIds = [for (var i = from.toInt(); i > lowerBound; i -= 1) BigInt.from(i)];
return proposalIds;
}

Expand Down

0 comments on commit ccbac5c

Please sign in to comment.