Skip to content

Commit

Permalink
chore: small tocuhup
Browse files Browse the repository at this point in the history
  • Loading branch information
viraj124 committed Oct 15, 2024
1 parent 637bee6 commit 2a0755f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/solidity-contracts/scripts/hardhat/eventFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ task(
async (taskArgs: any, hre: HardhatRuntimeEnvironment): Promise<void> => {
const provider = new hre.ethers.JsonRpcProvider(process.env.RPC_URL);

const grantRoleEvent = [
const grantRoleEvenABI = [
'event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)',
];

const contract = new hre.ethers.Contract(
taskArgs.contract,
grantRoleEvent,
grantRoleEvenABI,
provider
);

Expand All @@ -39,7 +39,7 @@ task(

writeFileSync('grantedRoles.json', JSON.stringify(eventPayload));
} catch (error) {
throw new Error(`Unable to query events: ${error}`);
throw new Error(`Unable to filter and query events: ${error}`);
}
}
);

0 comments on commit 2a0755f

Please sign in to comment.