mirror of
https://github.com/luxfi/bundler.git
synced 2026-10-30 17:01:04 +00:00
21 lines
824 B
TypeScript
21 lines
824 B
TypeScript
// import { expect } from 'chai'
|
|
// import hre from 'hardhat'
|
|
// import { time } from '@nomicfoundation/hardhat-network-helpers'
|
|
//
|
|
// describe('Lock', function () {
|
|
// it('Should set the right unlockTime', async function () {
|
|
// const lockedAmount = 1_000_000_000
|
|
// const ONE_YEAR_IN_SECS = 365 * 24 * 60 * 60
|
|
// const unlockTime = (await time.latest()) + ONE_YEAR_IN_SECS
|
|
//
|
|
// // deploy a lock contract where funds can be withdrawn
|
|
// // one year in the future
|
|
// const Lock = await hre.ethers.getContractFactory('Lock')
|
|
// const lock = await Lock.deploy(unlockTime, { value: lockedAmount })
|
|
//
|
|
// // assert that the value is correct
|
|
// expect(await lock.unlockTime()).to.equal(unlockTime)
|
|
// })
|
|
// })
|
|
// should throw timeout exception if user operation is not mined after x time
|