Skip to content

Commit

Permalink
refactor: lint the project
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion committed Dec 18, 2023
1 parent 50c2b09 commit c968188
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
.github
.idea
.nycrc
CHANGELOG.md
typechain
abi
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ const withdrawal = await wallet.withdraw({

## 🤖 Running tests

In order to run test you need run [local-setup](https://github.com/matter-labs/local-setup) on your machine.
For running tests, use:
In order to run test you need run [local-setup](https://github.com/matter-labs/local-setup) on your machine.
For running tests, use:

```shell
yarn test:wait # waits for local-setup to be ready
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/paymaster.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ describe("Paymaster", () => {
const tokenAddress = await tokenContract.getAddress();

// mint tokens to wallet, so it could pay fee with tokens
const mintTx = await tokenContract.mint(
const mintTx = (await tokenContract.mint(
Typed.address(await wallet.getAddress()),
Typed.uint256(INIT_MINT_AMOUNT),
) as ethers.ContractTransactionResponse;
)) as ethers.ContractTransactionResponse;
await mintTx.wait();

const paymasterAbi = require(paymasterPath).abi;
Expand Down
6 changes: 3 additions & 3 deletions tests/wait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ async function main() {
for (let i = 0; i < maxAttempts; i++) {
try {
await provider.getNetwork();
return
return;
} catch (error) {
await utils.sleep(20_000);
await utils.sleep(20_000);
}
}
throw new Error("Maximum retries exceeded.")
throw new Error("Maximum retries exceeded.");
}

main()
Expand Down

0 comments on commit c968188

Please sign in to comment.