mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update external tests and docs
This commit is contained in:
@@ -231,7 +231,7 @@ contract ico is safeMath {
|
||||
require( ! aborted );
|
||||
require( token(tokenAddr).mint(foundationAddress, token(tokenAddr).totalSupply() * 96 / 100) );
|
||||
require( premium(premiumAddr).mint(foundationAddress, totalMint / 5000 - totalPremiumMint) );
|
||||
require( foundationAddress.send(this.balance) );
|
||||
require( foundationAddress.send(address(this).balance) );
|
||||
require( token(tokenAddr).closeIco() );
|
||||
require( premium(premiumAddr).closeIco() );
|
||||
}
|
||||
|
||||
@@ -95,8 +95,8 @@ contract module {
|
||||
if ( _balance > 0 ) {
|
||||
require( abstractModuleHandler(moduleHandlerAddress).transfer(address(this), newModuleAddress, _balance, false) );
|
||||
}
|
||||
if ( this.balance > 0 ) {
|
||||
require( newModuleAddress.send(this.balance) );
|
||||
if ( address(this).balance > 0 ) {
|
||||
require( newModuleAddress.send(address(this).balance) );
|
||||
}
|
||||
moduleStatus = status.Disconnected;
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ contract token is safeMath, module, announcementTypes {
|
||||
if ( ! forReplace ) {
|
||||
require( db.replaceOwner(this) );
|
||||
assert( genesisAddr.length == genesisValue.length );
|
||||
require( this.balance >= genesisAddr.length * 0.2 ether );
|
||||
require( address(this).balance >= genesisAddr.length * 0.2 ether );
|
||||
for ( uint256 a=0 ; a<genesisAddr.length ; a++ ) {
|
||||
genesis[genesisAddr[a]] = true;
|
||||
require( db.increase(genesisAddr[a], genesisValue[a]) );
|
||||
|
||||
@@ -55,7 +55,7 @@ contract Bounty is PullPayment, Destructible {
|
||||
if (target.checkInvariant()) {
|
||||
throw;
|
||||
}
|
||||
asyncSend(researcher, this.balance);
|
||||
asyncSend(researcher, address(this).balance);
|
||||
claimed = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ contract LimitBalance {
|
||||
* @dev Checks if limit was reached. Case true, it throws.
|
||||
*/
|
||||
modifier limitedPayable() {
|
||||
if (this.balance > limit) {
|
||||
if (address(this).balance > limit) {
|
||||
throw;
|
||||
}
|
||||
_;
|
||||
|
||||
@@ -37,7 +37,7 @@ contract RefundVault is Ownable {
|
||||
require(state == State.Active);
|
||||
state = State.Closed;
|
||||
emit Closed();
|
||||
wallet.transfer(this.balance);
|
||||
wallet.transfer(address(this).balance);
|
||||
}
|
||||
|
||||
function enableRefunds() public onlyOwner {
|
||||
|
||||
@@ -37,7 +37,7 @@ contract HasNoEther is Ownable {
|
||||
* @dev Transfer all Ether held by the contract to the owner.
|
||||
*/
|
||||
function reclaimEther() external onlyOwner {
|
||||
if(!owner.send(this.balance)) {
|
||||
if(!owner.send(address(this).balance)) {
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ contract PullPayment {
|
||||
throw;
|
||||
}
|
||||
|
||||
if (this.balance < payment) {
|
||||
if (address(this).balance < payment) {
|
||||
throw;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user