Updated compiler version and tests

This commit is contained in:
Игорь Соболев 2019-07-01 14:00:17 +03:00
parent db812c1f0c
commit bbad2f3991
3 changed files with 11 additions and 3 deletions

View File

@ -12,8 +12,7 @@
"babel-register": "^6.26.0", "babel-register": "^6.26.0",
"bindings": "^1.5.0", "bindings": "^1.5.0",
"ganache-cli": "^6.4.1", "ganache-cli": "^6.4.1",
"openzeppelin-solidity": "^2.1.3", "truffle": "5.0.25",
"truffle": "5.0.24",
"truffle-hdwallet-provider": "^1.0.0-web3one.5" "truffle-hdwallet-provider": "^1.0.0-web3one.5"
}, },
"scripts": { "scripts": {

View File

@ -19,6 +19,15 @@ contract("Testing Lazy", accounts => {
assert.equal(task.status, 2); assert.equal(task.status, 2);
}); });
it("should pass correct proof", async () => {
let instance = await Lazy.deployed();
let task = await instance.tasks(1);
assert.equal(task.status, 0);
await instance.challenge(1);
task = await instance.tasks(1);
assert.equal(task.status, 1);
});
}); });

View File

@ -26,7 +26,7 @@ module.exports = {
}, },
compilers: { compilers: {
solc: { solc: {
version: "0.5.4", version: "0.5.10",
settings: { settings: {
optimizer: { optimizer: {
enabled: true, enabled: true,