From cf9b11ef58b423f92c04ded98ec1018b914f3412 Mon Sep 17 00:00:00 2001 From: Manik Jain Date: Tue, 27 Apr 2021 03:16:34 -0400 Subject: [PATCH 1/3] Update Ownable.sol --- contracts/access/Ownable.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/access/Ownable.sol b/contracts/access/Ownable.sol index bdad22b22e3..b96a73d46cc 100644 --- a/contracts/access/Ownable.sol +++ b/contracts/access/Ownable.sol @@ -16,7 +16,7 @@ import "../utils/Context.sol"; * the owner. */ abstract contract Ownable is Context { - address private _owner; + address internal _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); From ec6bc8f33d00e51a106b98b0e70f5d7a5900765a Mon Sep 17 00:00:00 2001 From: Manik Jain Date: Tue, 27 Apr 2021 03:21:42 -0400 Subject: [PATCH 2/3] Create DefaultOwnable.sol --- contracts/access/DefaultOwnable.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 contracts/access/DefaultOwnable.sol diff --git a/contracts/access/DefaultOwnable.sol b/contracts/access/DefaultOwnable.sol new file mode 100644 index 00000000000..c8973168aa8 --- /dev/null +++ b/contracts/access/DefaultOwnable.sol @@ -0,0 +1,10 @@ +pragma solidity > 0.8.0; + +import 'Ownable.sol'; + +contract DefaultOwnable is Ownable { + + constructor(address deployer) { + _owner = deployer; + } +} From 1900f88b46ab6ac7ff4c11c99569d46990c06328 Mon Sep 17 00:00:00 2001 From: Manik Jain Date: Tue, 27 Apr 2021 03:27:23 -0400 Subject: [PATCH 3/3] Update DefaultOwnable.sol --- contracts/access/DefaultOwnable.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/access/DefaultOwnable.sol b/contracts/access/DefaultOwnable.sol index c8973168aa8..adf2f874728 100644 --- a/contracts/access/DefaultOwnable.sol +++ b/contracts/access/DefaultOwnable.sol @@ -1,4 +1,4 @@ -pragma solidity > 0.8.0; +pragma solidity ^0.8.0; import 'Ownable.sol';