File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed
packages/sharing-smart-contract Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff 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 /***************************************************************************
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -7,11 +7,14 @@ const { ethers } = pkg;
77async 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 ( ) ;
You can’t perform that action at this time.
0 commit comments