"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mineRandomBlocks = mineRandomBlocks;
const tslib_1 = require("tslib");
const hardhat_1 = tslib_1.__importDefault(require("hardhat"));
async function mineRandomBlocks(amount) {
    const randomBlocksToMine = amount ?? Math.ceil(Math.random() * 10);
    for (let i = 0; i < randomBlocksToMine; i++) {
        await hardhat_1.default.network.provider.send("evm_mine");
    }
}
//# sourceMappingURL=BlockchainUtils.js.map