Skip to content

Commit

Permalink
added await (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
vignesha22 authored Nov 3, 2023
1 parent 97157b5 commit bccf4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/paymaster/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class Paymaster {
const paymasterContract = new ethers.Contract(paymasterAddress, abi, provider);
const signer = new Wallet(relayerKey, provider)
for (let i = 0; i < address.length; i++) {
const isAdded = paymasterContract.check(signer.address, address[i]);
const isAdded = await paymasterContract.check(signer.address, address[i]);
if (isAdded) {
throw new Error(`${address[i]} already whitelisted`)
}
Expand Down

0 comments on commit bccf4c4

Please sign in to comment.