Skip to content

Commit

Permalink
Add support for contract.on
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Jun 26, 2023
1 parent 4c39c2c commit ba24025
Show file tree
Hide file tree
Showing 6 changed files with 583 additions and 121 deletions.
6 changes: 5 additions & 1 deletion packages/hardhat-ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@
"README.md"
],
"dependencies": {
"debug": "^4.1.1"
"debug": "^4.1.1",
"lodash.isequal": "^4.5.0"
},
"devDependencies": {
"@types/chai": "^4.2.0",
"@types/chai-as-promised": "^7.1.3",
"@types/lodash.isequal": "^4.5.6",
"@types/mocha": ">=9.1.0",
"@types/node": "^14.0.0",
"@types/sinon": "^9.0.8",
"@typescript-eslint/eslint-plugin": "5.53.0",
"@typescript-eslint/parser": "5.53.0",
"chai": "^4.2.0",
Expand All @@ -60,6 +63,7 @@
"mocha": "^10.0.0",
"prettier": "2.4.1",
"rimraf": "^3.0.2",
"sinon": "^9.0.0",
"ts-node": "^10.8.0",
"typescript": "~4.7.4"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/hardhat-ethers/src/internal/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export class NotImplementedError extends HardhatEthersError {
}
}

export class NonStringEventError extends HardhatEthersError {
constructor(method: string, event: any) {
super(`Method '${method}' only supports string events, got '${event}'`);
export class UnsupportedEventError extends HardhatEthersError {
constructor(event: any) {
super(`Event '${event}' is not supported`);
}
}

Expand Down
Loading

0 comments on commit ba24025

Please sign in to comment.