Add workaround for websocket subscription issues

Mine a block every 4 minutes, to keep hardhat from
forgetting about websocket subscriptions after 5
minutes.
This commit is contained in:
Mark Spanbroek 2024-11-08 16:00:49 +01:00
parent 11ccefd720
commit cc69f3a3ae
1 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,11 @@ module.exports = {
networks: { networks: {
hardhat: { hardhat: {
tags: ["local"], tags: ["local"],
mining: {
auto: true,
// Workaround for https://github.com/NomicFoundation/hardhat/issues/2053
interval: 4 * 60 * 1000
}
}, },
codexdisttestnetwork: { codexdisttestnetwork: {
url: `${process.env.DISTTEST_NETWORK_URL}`, url: `${process.env.DISTTEST_NETWORK_URL}`,