mirror of
https://github.com/status-im/dagger-contracts.git
synced 2025-02-11 14:17:05 +00:00
Adds ability for client to withdraw funds from a cancelled storage request. Tests to check if request has timed out, if the client address is requesting withdraw, if the request state is new, and the funds were successfully transferred.
6 lines
161 B
JavaScript
6 lines
161 B
JavaScript
async function waitUntilExpired(expiry) {
|
|
await ethers.provider.send("hardhat_mine", [ethers.utils.hexValue(expiry)])
|
|
}
|
|
|
|
module.exports = { waitUntilExpired }
|