Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions web-wallet/src/lib/__mocks__/AccountSyncer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ class AccountSyncerMock extends AccountSyncer {
* @returns {Promise<AccountBalance[]>}
*/
async balances(profiles) {
return Array(profiles.length).fill({
return Array.from({ length: profiles.length }, () => ({
nonce: 9876n,
value: 12_345_000_000_000n,
});
}));
}

/**
* @param {Array<Profile>} profiles
* @returns {Promise<StakeInfo[]>}
*/
async stakes(profiles) {
return Array(profiles.length).fill(stakeInfo);
return Array.from({ length: profiles.length }, () => stakeInfo);
}
}

Expand Down