Skip to content

Commit

Permalink
fix: remove unneeded from
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Aug 4, 2023
1 parent 87bcaf4 commit 0c21ce6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yarn-project/end-to-end/src/e2e_lending_contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ describe('e2e_lending_contract', () => {
const toFields = (res: any) => res[0].map((v: number | bigint | Fr) => new Fr(v));

[storageValues['interestAccumulator'], storageValues['last_updated_ts']] = toFields(
await contract.methods.getTot(0).view({ from: account.address }),
await contract.methods.getTot(0).view(),
);

[storageValues['private_collateral'], storageValues['private_debt']] = toFields(
await contract.methods.getPosition(accountKey).view({ from: account.address }),
await contract.methods.getPosition(accountKey).view(),
);

[storageValues['public_collateral'], storageValues['public_debt']] = toFields(
await contract.methods.getPosition(account.address.toField()).view({ from: account.address }),
await contract.methods.getPosition(account.address.toField()).view(),
);

return storageValues;
Expand Down

0 comments on commit 0c21ce6

Please sign in to comment.