Skip to content

Commit 4cc6325

Browse files
committed
changed unit to bool
1 parent 8d4f3e8 commit 4cc6325

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contracts/SRTToken.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,22 +163,22 @@ library SafeMath {
163163

164164
/* Contract class for adding removing whitelisted contracts */
165165
contract WhiteListedContracts is Ownable {
166-
mapping (address => uint ) white_listed_contracts;
166+
mapping (address => bool ) white_listed_contracts;
167167

168168
//modifer to check if the contract given is white listed or not
169169
modifier whitelistedContractsOnly() {
170-
require(white_listed_contracts[msg.sender] == 1);
170+
require(white_listed_contracts[msg.sender]);
171171
_;
172172
}
173173

174174
//add a contract to whitelist
175175
function addWhiteListedContracts (address _address) onlyOwner public {
176-
white_listed_contracts[_address] = 1;
176+
white_listed_contracts[_address] = true;
177177
}
178178

179179
//remove contract from whitelist
180180
function removeWhiteListedContracts (address _address) onlyOwner public {
181-
white_listed_contracts[_address] = 0;
181+
white_listed_contracts[_address] = false;
182182
}
183183
}
184184

0 commit comments

Comments
 (0)