After epochLength
, an epoch transition can be executed by any user.
const tx = await contract.beginEpochTransition()
With test environment, the block number can be increased with
await provider.send('evm_increaseTime', [epochLength])
{% hint style="info" %} See: evm_increaseTime {% endhint %}