Do not use var where not neccessary in tests

This commit is contained in:
Alex Beregszaszi 2018-02-12 22:09:14 +00:00
parent dc5ad899d0
commit 3ddbf1617f
2 changed files with 4 additions and 4 deletions

View File

@ -7349,7 +7349,7 @@ BOOST_AUTO_TEST_CASE(warn_about_sha3)
char const* text = R"( char const* text = R"(
contract test { contract test {
function f() pure public { function f() pure public {
var x = sha3(uint8(1)); bytes32 x = sha3(uint8(1));
x; x;
} }
} }

View File

@ -282,9 +282,9 @@ BOOST_AUTO_TEST_CASE(builtin_functions)
require(this.call()); require(this.call());
} }
function g() pure public { function g() pure public {
var x = keccak256("abc"); bytes32 x = keccak256("abc");
var y = sha256("abc"); bytes32 y = sha256("abc");
var z = ecrecover(1, 2, 3, 4); address z = ecrecover(1, 2, 3, 4);
require(true); require(true);
assert(true); assert(true);
x; y; z; x; y; z;