Skip to content

Commit 6e806a4

Browse files
committed
Use address in constructor argument instead of contract reference
1 parent 7093b64 commit 6e806a4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/sharing-smart-contract/contracts/DataProtectorSharing.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
2626
import {IDataProtectorSharing, IexecLibOrders_v5, ICollection, ISubscription, IRental, ISale} from "./interfaces/IDataProtectorSharing.sol";
2727
import {AddOnlyAppWhitelistRegistry, IAddOnlyAppWhitelist} from "./registry/AddOnlyAppWhitelistRegistry.sol";
2828
import {ManageOrders} from "./ManageOrders.sol";
29-
import {IPoCo} from "./interfaces/IPoCo.sol";
3029
import {IRegistry} from "./interfaces/IRegistry.sol";
3130

3231
/// @custom:oz-upgrades-unsafe-allow state-variable-immutable
@@ -58,7 +57,7 @@ contract DataProtectorSharing is
5857
**************************************************************************/
5958
/// @custom:oz-upgrades-unsafe-allow constructor
6059
constructor(
61-
IPoCo _proxy,
60+
address _proxy,
6261
IRegistry protectedDataRegistry_,
6362
AddOnlyAppWhitelistRegistry addOnlyAppWhitelistRegistry_
6463
) ManageOrders(_proxy) {

packages/sharing-smart-contract/contracts/ManageOrders.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ abstract contract ManageOrders {
4545
* Constructor *
4646
**************************************************************************/
4747
/// @custom:oz-upgrades-unsafe-allow constructor
48-
constructor(IPoCo pocoDelegate_) {
49-
POCO_DELEGATE = pocoDelegate_;
48+
constructor(address pocoAddress) {
49+
POCO_DELEGATE = IPoCo(pocoAddress);
5050
}
5151

5252
/***************************************************************************

0 commit comments

Comments
 (0)