Unverified Commit cfef5836 by Nicolás Venturo Committed by GitHub

Removed default value assignments. (#1432)

parent d8ab8a00
...@@ -13,7 +13,7 @@ contract ERC20TokenMetadata is IERC20 { ...@@ -13,7 +13,7 @@ contract ERC20TokenMetadata is IERC20 {
} }
contract ERC20WithMetadata is ERC20TokenMetadata { contract ERC20WithMetadata is ERC20TokenMetadata {
string private _tokenURI = ""; string private _tokenURI;
constructor(string tokenURI) constructor(string tokenURI)
public public
......
...@@ -24,8 +24,6 @@ contract SplitPayment { ...@@ -24,8 +24,6 @@ contract SplitPayment {
require(payees.length == shares.length); require(payees.length == shares.length);
require(payees.length > 0); require(payees.length > 0);
_totalShares = 0;
_totalReleased = 0;
for (uint256 i = 0; i < payees.length; i++) { for (uint256 i = 0; i < payees.length; i++) {
_addPayee(payees[i], shares[i]); _addPayee(payees[i], shares[i]);
} }
......
...@@ -12,6 +12,8 @@ contract ReentrancyGuard { ...@@ -12,6 +12,8 @@ contract ReentrancyGuard {
uint256 private _guardCounter; uint256 private _guardCounter;
constructor() public { constructor() public {
// The counter starts at one to prevent changing it from zero to a non-zero
// value, which is a more expensive operation.
_guardCounter = 1; _guardCounter = 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment