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
7650210a
Unverified
Commit
7650210a
authored
Oct 20, 2020
by
psykeeper
Committed by
GitHub
Oct 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make contracts abstract if they had internal constructors (#2383)
parent
ec8efd52
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
Ownable.sol
contracts/access/Ownable.sol
+1
-1
ERC165.sol
contracts/introspection/ERC165.sol
+1
-1
PullPayment.sol
contracts/payment/PullPayment.sol
+1
-1
Pausable.sol
contracts/utils/Pausable.sol
+1
-1
ReentrancyGuard.sol
contracts/utils/ReentrancyGuard.sol
+1
-1
No files found.
contracts/access/Ownable.sol
View file @
7650210a
...
@@ -15,7 +15,7 @@ import "../GSN/Context.sol";
...
@@ -15,7 +15,7 @@ import "../GSN/Context.sol";
* `onlyOwner`, which can be applied to your functions to restrict their use to
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
* the owner.
*/
*/
contract Ownable is Context {
abstract
contract Ownable is Context {
address private _owner;
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
...
...
contracts/introspection/ERC165.sol
View file @
7650210a
...
@@ -10,7 +10,7 @@ import "./IERC165.sol";
...
@@ -10,7 +10,7 @@ import "./IERC165.sol";
* Contracts may inherit from this and call {_registerInterface} to declare
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
* their support of an interface.
*/
*/
contract ERC165 is IERC165 {
abstract
contract ERC165 is IERC165 {
/*
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
*/
...
...
contracts/payment/PullPayment.sol
View file @
7650210a
...
@@ -22,7 +22,7 @@ import "./escrow/Escrow.sol";
...
@@ -22,7 +22,7 @@ import "./escrow/Escrow.sol";
* instead of Solidity's `transfer` function. Payees can query their due
* instead of Solidity's `transfer` function. Payees can query their due
* payments with {payments}, and retrieve them with {withdrawPayments}.
* payments with {payments}, and retrieve them with {withdrawPayments}.
*/
*/
contract PullPayment {
abstract
contract PullPayment {
Escrow private _escrow;
Escrow private _escrow;
constructor () {
constructor () {
...
...
contracts/utils/Pausable.sol
View file @
7650210a
...
@@ -13,7 +13,7 @@ import "../GSN/Context.sol";
...
@@ -13,7 +13,7 @@ import "../GSN/Context.sol";
* the functions of your contract. Note that they will not be pausable by
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
* simply including this module, only once the modifiers are put in place.
*/
*/
contract Pausable is Context {
abstract
contract Pausable is Context {
/**
/**
* @dev Emitted when the pause is triggered by `account`.
* @dev Emitted when the pause is triggered by `account`.
*/
*/
...
...
contracts/utils/ReentrancyGuard.sol
View file @
7650210a
...
@@ -18,7 +18,7 @@ pragma solidity ^0.7.0;
...
@@ -18,7 +18,7 @@ pragma solidity ^0.7.0;
* to protect against it, check out our blog post
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
*/
contract ReentrancyGuard {
abstract
contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// slot's contents, replace the bits taken up by the boolean, and then write
...
...
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