Skip to content

Commit c508538

Browse files
committed
tests: adding debug info to local JsonPrcProvider
1 parent 4db2757 commit c508538

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src.ts/_tests/test-contract-integ.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ interface ContractAbi {
1111

1212
describe("Tests contract integration", function() {
1313
const provider = new ethers.JsonRpcProvider("http:/\/127.0.0.1:8545");
14+
provider.on("error", (error: any) => {
15+
if (error && error.event === "initial-network-discovery") {
16+
console.dir(error.info, { depth: null });
17+
provider.off("error");
18+
}
19+
});
1420

1521
const abi = [
1622
"constructor(address owner, uint maxSupply)",

0 commit comments

Comments
 (0)