Skip to content

Commit

Permalink
add resetstate to helpers
Browse files Browse the repository at this point in the history
Signed-off-by: r3kt.eth <so@r3kt.io>
  • Loading branch information
r3kt-eth committed Aug 17, 2023
1 parent 92e465b commit cf745d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);
Expand Down

0 comments on commit cf745d9

Please sign in to comment.