Skip to content

Commit

Permalink
tests: adding debug info to local JsonPrcProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jan 4, 2025
1 parent 4db2757 commit c508538
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src.ts/_tests/test-contract-integ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ interface ContractAbi {

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

const abi = [
"constructor(address owner, uint maxSupply)",
Expand Down
Loading

0 comments on commit c508538

Please sign in to comment.