aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/zeppelin
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-06-21 19:58:38 +0800
committerChristian Parpart <christian@ethereum.org>2018-06-21 20:14:16 +0800
commit6de24b1c5e031dd6bda5de7d5fb1161363443693 (patch)
treeead5fe7b3a5b1c2c282fa8123fe516ce00095c72 /test/compilationTests/zeppelin
parent3e9b4383cc42d6bdf09796e52b8816515618e676 (diff)
downloaddexon-solidity-6de24b1c5e031dd6bda5de7d5fb1161363443693.tar
dexon-solidity-6de24b1c5e031dd6bda5de7d5fb1161363443693.tar.gz
dexon-solidity-6de24b1c5e031dd6bda5de7d5fb1161363443693.tar.bz2
dexon-solidity-6de24b1c5e031dd6bda5de7d5fb1161363443693.tar.lz
dexon-solidity-6de24b1c5e031dd6bda5de7d5fb1161363443693.tar.xz
dexon-solidity-6de24b1c5e031dd6bda5de7d5fb1161363443693.tar.zst
dexon-solidity-6de24b1c5e031dd6bda5de7d5fb1161363443693.zip
test: drop var-keyword in compilationTests in favor of explicit types
Diffstat (limited to 'test/compilationTests/zeppelin')
-rw-r--r--test/compilationTests/zeppelin/ownership/Shareable.sol6
-rw-r--r--test/compilationTests/zeppelin/token/StandardToken.sol2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/compilationTests/zeppelin/ownership/Shareable.sol b/test/compilationTests/zeppelin/ownership/Shareable.sol
index 9fdaccfd..b6cb1c16 100644
--- a/test/compilationTests/zeppelin/ownership/Shareable.sol
+++ b/test/compilationTests/zeppelin/ownership/Shareable.sol
@@ -83,7 +83,7 @@ contract Shareable {
return;
}
uint256 ownerIndexBit = 2**index;
- var pending = pendings[_operation];
+ PendingState memory pending = pendings[_operation];
if (pending.ownersDone & ownerIndexBit > 0) {
pending.yetNeeded++;
pending.ownersDone -= ownerIndexBit;
@@ -116,7 +116,7 @@ contract Shareable {
* @return True if the owner has confirmed and false otherwise.
*/
function hasConfirmed(bytes32 _operation, address _owner) constant returns (bool) {
- var pending = pendings[_operation];
+ PendingState memory pending = pendings[_operation];
uint256 index = ownerIndex[_owner];
// make sure they're an owner
@@ -142,7 +142,7 @@ contract Shareable {
throw;
}
- var pending = pendings[_operation];
+ PendingState memory pending = pendings[_operation];
// if we're not yet working on this operation, switch over and reset the confirmation status.
if (pending.yetNeeded == 0) {
// reset count of confirmations needed.
diff --git a/test/compilationTests/zeppelin/token/StandardToken.sol b/test/compilationTests/zeppelin/token/StandardToken.sol
index b1b49fe3..d86aae4c 100644
--- a/test/compilationTests/zeppelin/token/StandardToken.sol
+++ b/test/compilationTests/zeppelin/token/StandardToken.sol
@@ -24,7 +24,7 @@ contract StandardToken is ERC20, BasicToken {
* @param _value uint256 the amout of tokens to be transfered
*/
function transferFrom(address _from, address _to, uint256 _value) {
- var _allowance = allowed[_from][msg.sender];
+ uint256 _allowance = allowed[_from][msg.sender];
// Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
// if (_value > _allowance) throw;