extendEnvironment(env=>{const{contract}=env;env.contract=function(name,body){const{takeSnapshot}=require('@nomicfoundation/hardhat-network-helpers');contract(name,accounts=>{// reset the state of the chain in between contract test suitesletsnapshot;before(asyncfunction(){snapshot=awaittakeSnapshot();});after(asyncfunction(){awaitsnapshot.restore();});// remove the default account from the accounts list used in tests, in order// to protect tests against accidentally passing due to the contract// deployer being used subsequently as function callerbody(accounts.slice(1));});};});