Skip to content

Commit 6a918de

Browse files
committed
Apply a workaround for a problem when running solidity-coverage (see sc-forks/solidity-coverage#487).
1 parent 286d90f commit 6a918de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

solidity/contracts/converter/BancorConverter.sol

+3-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ contract BancorConverter is IBancorConverter, SmartTokenController, ContractRegi
165165
* can only be called if the converter has an ETH-reserve
166166
*/
167167
function() external payable {
168-
require(hasETHReserve());
168+
require(reserves[address(0)].isSet); // require(hasETHReserve());
169+
// a workaround for a problem when running solidity-coverage
170+
// see https://github.com/sc-forks/solidity-coverage/issues/487
169171
}
170172

171173
/**

0 commit comments

Comments
 (0)