From 5b1bbf324c0532300c6c62df3a3e723781874e48 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 22 Oct 2019 16:31:10 -0400 Subject: [PATCH] fix: update old contracts to the new require syntax --- dapps/tests/app/test/solidity_test.sol | 2 +- dapps/tests/contracts/test/ownable_test.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dapps/tests/app/test/solidity_test.sol b/dapps/tests/app/test/solidity_test.sol index c68c73eda..cfb6a4fed 100644 --- a/dapps/tests/app/test/solidity_test.sol +++ b/dapps/tests/app/test/solidity_test.sol @@ -9,6 +9,6 @@ contract MyTest { } function valueShouldBe1() public { - Assert.equal(1, i, "value is not correct"); + require(1 == i, "value is not correct"); } } diff --git a/dapps/tests/contracts/test/ownable_test.sol b/dapps/tests/contracts/test/ownable_test.sol index fb6ca4f1e..c81535d3b 100644 --- a/dapps/tests/contracts/test/ownable_test.sol +++ b/dapps/tests/contracts/test/ownable_test.sol @@ -12,6 +12,6 @@ contract OwnableTests { } function shouldnotbezeroAddress() public { - Assert.equal(true, true, "owner is uninitialized"); + require(true == true, "owner is uninitialized"); } }