From b05e6a92ad500779b3216ada34f677b9c8247517 Mon Sep 17 00:00:00 2001 From: Leszek Stachowski Date: Wed, 16 Oct 2024 17:04:27 +0200 Subject: [PATCH] Speed up the build for Github Actions --- packages/cli/src/base.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/cli/src/base.ts b/packages/cli/src/base.ts index f02b3b710..28d52e83d 100644 --- a/packages/cli/src/base.ts +++ b/packages/cli/src/base.ts @@ -106,6 +106,12 @@ export abstract class BaseCommand extends Command { nodeUrl && nodeUrl.endsWith('.ipc') ? new Web3(new Web3.providers.IpcProvider(nodeUrl, net)) : new Web3(nodeUrl) + + // Speed up the build for Github Actions + if (process.env['GITHUB_ACTIONS']) { + // @ts-ignore + this._web3.eth.transactionPollingInterval = 10 + } } return this._web3 }