viem
Version:
15 lines • 525 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.setBlockTimestampInterval = setBlockTimestampInterval;
async function setBlockTimestampInterval(client, { interval }) {
const interval_ = (() => {
if (client.mode === 'hardhat')
return interval * 1000;
return interval;
})();
await client.request({
method: `${client.mode}_setBlockTimestampInterval`,
params: [interval_],
});
}
//# sourceMappingURL=setBlockTimestampInterval.js.map
;