aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-02-13 06:09:14 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-02-13 06:37:35 +0800
commit3ddbf1617fb8d981131d2df5a48fa0a2615f83a2 (patch)
tree0746cf510369e757bb5498d6f5ad22c50ffd65d3 /test/libsolidity
parentdc5ad899d0ff08aba7022a765e8ec363fa6c1f7e (diff)
downloaddexon-solidity-3ddbf1617fb8d981131d2df5a48fa0a2615f83a2.tar.gz
dexon-solidity-3ddbf1617fb8d981131d2df5a48fa0a2615f83a2.tar.zst
dexon-solidity-3ddbf1617fb8d981131d2df5a48fa0a2615f83a2.zip
Do not use var where not neccessary in tests
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp2
-rw-r--r--test/libsolidity/ViewPureChecker.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp
index b3a21671..950bca38 100644
--- a/test/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -7349,7 +7349,7 @@ BOOST_AUTO_TEST_CASE(warn_about_sha3)
char const* text = R"(
contract test {
function f() pure public {
- var x = sha3(uint8(1));
+ bytes32 x = sha3(uint8(1));
x;
}
}
diff --git a/test/libsolidity/ViewPureChecker.cpp b/test/libsolidity/ViewPureChecker.cpp
index debeb4dc..837f9aa9 100644
--- a/test/libsolidity/ViewPureChecker.cpp
+++ b/test/libsolidity/ViewPureChecker.cpp
@@ -282,9 +282,9 @@ BOOST_AUTO_TEST_CASE(builtin_functions)
require(this.call());
}
function g() pure public {
- var x = keccak256("abc");
- var y = sha256("abc");
- var z = ecrecover(1, 2, 3, 4);
+ bytes32 x = keccak256("abc");
+ bytes32 y = sha256("abc");
+ address z = ecrecover(1, 2, 3, 4);
require(true);
assert(true);
x; y; z;