UNPKG

viem

Version:

TypeScript Interface for Ethereum

15 lines 525 B
"use strict"; 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