Skip to content

Commit 56ca934

Browse files
committed
Remove result proxy address from sharing contract
1 parent 57b8998 commit 56ca934

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ contract DataProtectorSharing is
7272
__AccessControl_init();
7373
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
7474

75-
updateEnv("ipfs", "https://result.v8-bellecour.iex.ec");
75+
updateEnv("ipfs");
7676
}
7777

7878
/***************************************************************************
@@ -261,11 +261,9 @@ contract DataProtectorSharing is
261261
* Admin *
262262
**************************************************************************/
263263
function updateEnv(
264-
string memory iexecResultStorageProvider_,
265-
string memory iexecResultStorageProxy_
264+
string memory iexecResultStorageProvider_
266265
) public onlyRole(DEFAULT_ADMIN_ROLE) {
267266
_iexecResultStorageProvider = iexecResultStorageProvider_;
268-
_iexecResultStorageProxy = iexecResultStorageProxy_;
269267
}
270268

271269
/***************************************************************************

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ abstract contract ManageOrders {
3838
0x0000000000000000000000000000000000000000000000000000000000000003; // [tee,scone]
3939
uint256 internal constant TRUST = 0; // No replication
4040
string internal _iexecResultStorageProvider;
41+
// This value is not used anymore but it is kept
42+
// as a placeholder to not break storage of the proxy
43+
// deployed on Bellecour.
4144
string internal _iexecResultStorageProxy;
4245
uint256 private _salt;
4346

@@ -166,8 +169,6 @@ abstract contract ManageOrders {
166169
'{"iexec_result_encryption":true', // solhint-disable-line quotes
167170
',"iexec_result_storage_provider":"', // solhint-disable-line quotes
168171
_iexecResultStorageProvider,
169-
'","iexec_result_storage_proxy":"', // solhint-disable-line quotes
170-
_iexecResultStorageProxy,
171172
'"}' // solhint-disable-line quotes
172173
);
173174
}

packages/sharing-smart-contract/scripts/updateEnv.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ const { ethers } = pkg;
77
async function main() {
88
const { ENV } = env;
99
console.log(`using ENV: ${ENV}`);
10-
const { dataprotectorSharingContractAddress, resultProxyUrl } = getEnvironment(ENV);
10+
const { dataprotectorSharingContractAddress } = getEnvironment(ENV);
1111

12-
const newEnv = ['ipfs', resultProxyUrl];
12+
const newResultStorageProvider = 'ipfs';
1313

14-
console.log(`UpdateEnv Contract at ${dataprotectorSharingContractAddress} with [${newEnv}]`);
14+
console.log(
15+
`UpdateEnv contract at ${dataprotectorSharingContractAddress} ` +
16+
`[newResultStorageProvider=${newResultStorageProvider}]`,
17+
);
1518
const [admin] = await ethers.getSigners();
1619
console.log(`using wallet ${admin.address}`);
1720

@@ -20,7 +23,7 @@ async function main() {
2023
dataprotectorSharingContractAddress,
2124
);
2225

23-
const updateEnvTx = await dataProtectorSharingContract.updateEnv(...newEnv);
26+
const updateEnvTx = await dataProtectorSharingContract.updateEnv(newResultStorageProvider);
2427
console.log(`tx: ${updateEnvTx.hash}`);
2528

2629
await updateEnvTx.wait();

0 commit comments

Comments
 (0)