Various fixes and formatting chores (#885)
* fix: clean up solium linting errors * fix: make various contracts natspec compliant * fix: this.balance deprecated; convert to address(this).balance * fix: contract.call deprecated and switch to gasleft() * fix: ignore empty block rule project-wide * fix: add ignore cases for the rest of the linting warnings
This commit is contained in:
@ -25,7 +25,7 @@ contract SimpleSavingsWallet is Heritable {
|
||||
* @dev wallet can receive funds.
|
||||
*/
|
||||
function () public payable {
|
||||
emit Received(msg.sender, msg.value, this.balance);
|
||||
emit Received(msg.sender, msg.value, address(this).balance);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -35,6 +35,6 @@ contract SimpleSavingsWallet is Heritable {
|
||||
require(payee != 0 && payee != address(this));
|
||||
require(amount > 0);
|
||||
payee.transfer(amount);
|
||||
emit Sent(payee, amount, this.balance);
|
||||
emit Sent(payee, amount, address(this).balance);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user