Unlock host collateral at end of contract

This commit is contained in:
Mark Spanbroek 2022-03-09 11:33:54 +01:00 committed by markspanbroek
parent f4d895113f
commit 241fcf10a5
1 changed files with 5 additions and 5 deletions

View File

@ -89,11 +89,11 @@ describe("Storage", function () {
await advanceTimeTo(end)
}
// it("unlocks the host collateral", async function () {
// await mineUntilEnd()
// await storage.finishContract(id)
// await expect(storage.withdraw()).not.to.be.reverted
// })
it("unlocks the host collateral", async function () {
await waitUntilEnd()
await storage.finishContract(id)
await expect(storage.withdraw()).not.to.be.reverted
})
it("pays the host", async function () {
await waitUntilEnd()