mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not use var where not neccessary in tests
This commit is contained in:
parent
dc5ad899d0
commit
3ddbf1617f
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user