Skip to content

Commit

Permalink
chore: make generate output nicer (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc authored Mar 28, 2024
1 parent 27ecbfb commit f980eea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function loadApiKey(key: string): string {
return apiKey;
}

function sleep(ms: number = 3_000) {
function sleep(ms: number = 1_000) {
return new Promise((resolve) => setTimeout(resolve, ms));
}

Expand Down Expand Up @@ -147,7 +147,7 @@ function allEqual<T>(array: T[]) {
export async function assertContractAbisMatch(contract: ContractConfig) {
// skip check when single address is provided
if (typeof contract.address === 'string') {
console.log(`- ${contract.name} ✔`);
console.log(`- ${contract.name}\n`);
return;
}

Expand Down Expand Up @@ -191,6 +191,8 @@ export default async function () {
await sleep(); // sleep to avoid rate limiting
}

console.log(`Done.\n`);

return {
out: 'src/generated.ts',
plugins: [
Expand Down

0 comments on commit f980eea

Please sign in to comment.