aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/corion/publisher.sol
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/corion/publisher.sol
parent3e9b4383cc42d6bdf09796e52b8816515618e676 (diff)
downloaddexon-solidity-6de24b1c5e031dd6bda5de7d5fb1161363443693.tar.gz
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/corion/publisher.sol')
-rw-r--r--test/compilationTests/corion/publisher.sol6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compilationTests/corion/publisher.sol b/test/compilationTests/corion/publisher.sol
index e94b9a92..98d5af2a 100644
--- a/test/compilationTests/corion/publisher.sol
+++ b/test/compilationTests/corion/publisher.sol
@@ -111,7 +111,7 @@ contract publisher is announcementTypes, module, safeMath {
@success Opposed or not
*/
if ( ! oppositable ) { return false; }
- var (_success, _amount) = moduleHandler(moduleHandlerAddress).totalSupply();
+ (bool _success, uint256 _amount) = moduleHandler(moduleHandlerAddress).totalSupply();
require( _success );
return _amount * oppositeRate / 100 > weight;
}
@@ -229,7 +229,7 @@ contract publisher is announcementTypes, module, safeMath {
newArrayID = a;
}
}
- var (_success, _balance) = moduleHandler(moduleHandlerAddress).balanceOf(msg.sender);
+ (bool _success, uint256 _balance) = moduleHandler(moduleHandlerAddress).balanceOf(msg.sender);
require( _success );
require( _balance > 0);
if ( foundEmptyArrayID ) {
@@ -266,7 +266,7 @@ contract publisher is announcementTypes, module, safeMath {
Inner function to check the ICO status.
@bool Is the ICO in proccess or not?
*/
- var (_success, _isICO) = moduleHandler(moduleHandlerAddress).isICO();
+ (bool _success, bool _isICO) = moduleHandler(moduleHandlerAddress).isICO();
require( _success );
return _isICO;
}