From cf745d944e7a8f20961b9a1698fc20bdad9874ed Mon Sep 17 00:00:00 2001 From: "r3kt.eth" Date: Thu, 17 Aug 2023 19:01:32 +0200 Subject: [PATCH] add resetstate to helpers Signed-off-by: r3kt.eth --- helpers.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helpers.js b/helpers.js index 6685b070a..f16cfe08a 100644 --- a/helpers.js +++ b/helpers.js @@ -14,6 +14,11 @@ let currentNetwork = chains.mainnet; let addedNetworks = [chains.mainnet, chains.goerli, chains.sepolia]; module.exports = { + async resetState() { + log('Resetting state of helpers'); + currentNetwork = chains.mainnet; + addedNetworks = [chains.mainnet, chains.goerli, chains.sepolia]; + }, // set currently active network async setNetwork(network) { log(`Setting network to ${JSON.stringify(network)}`);