Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
cfef5836
Unverified
Commit
cfef5836
authored
Oct 17, 2018
by
Nicolás Venturo
Committed by
GitHub
Oct 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed default value assignments. (#1432)
parent
d8ab8a00
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
TokenMetadata.sol
contracts/drafts/ERC1046/TokenMetadata.sol
+1
-1
SplitPayment.sol
contracts/payment/SplitPayment.sol
+0
-2
ReentrancyGuard.sol
contracts/utils/ReentrancyGuard.sol
+2
-0
No files found.
contracts/drafts/ERC1046/TokenMetadata.sol
View file @
cfef5836
...
@@ -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
...
...
contracts/payment/SplitPayment.sol
View file @
cfef5836
...
@@ -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]);
}
}
...
...
contracts/utils/ReentrancyGuard.sol
View file @
cfef5836
...
@@ -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;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment