mirror of
https://github.com/status-im/dagger-contracts.git
synced 2025-01-27 14:56:07 +00:00
Ensure that starting a contract can only be done once
This commit is contained in:
parent
aa673ff71c
commit
8fbb99630c
@ -74,6 +74,11 @@ describe("Storage", function () {
|
||||
storage.connect(client).startContract(id)
|
||||
).to.be.revertedWith("Only host can call this function")
|
||||
})
|
||||
|
||||
it("can only be done once", async function () {
|
||||
await storage.connect(host).startContract(id)
|
||||
await expect(storage.connect(host).startContract(id)).to.be.reverted
|
||||
})
|
||||
})
|
||||
|
||||
describe("finishing the contract", function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user