Skip to content

Commit b1c3c62

Browse files
committed
Clean
1 parent 27a6d0a commit b1c3c62

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

contracts/Store.sol

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ import "./registries/IRegistry.sol";
1717
/****************************************************************************
1818
* WARNING: Be carefull when editing this file. *
1919
* *
20-
* If you want add new variables for expanded features, add them at the *
21-
* end, or (better?) create a Store_v2 that inherits from this Store. *
20+
* If you want to add new variables, add them to the end of the *
21+
* struct `PocoStorage`. *
22+
* Read more about: *
23+
* - Diamond proxy storage https://eips.ethereum.org/EIPS/eip-2535 *
24+
* - Namespaced storage https://eips.ethereum.org/EIPS/eip-7201 *
2225
* *
23-
* If in doubt, read about Diamond proxy storage. *
2426
****************************************************************************/
2527

2628
abstract contract Store {

contracts/Store.v8.sol

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ import {IexecLibCore_v5} from "./libs/IexecLibCore_v5.sol";
1111
/****************************************************************************
1212
* WARNING: Be carefull when editing this file. *
1313
* *
14-
* If you want add new variables for expanded features, add them at the *
15-
* end, or (better?) create a Store_v2 that inherits from this Store. *
14+
* If you want to add new variables, add them to the end of the *
15+
* struct `PocoStorage`. *
16+
* Read more about: *
17+
* - Diamond proxy storage https://eips.ethereum.org/EIPS/eip-2535 *
18+
* - Namespaced storage https://eips.ethereum.org/EIPS/eip-7201 *
1619
* *
17-
* If in doubt, read about Diamond proxy storage. *
1820
****************************************************************************/
1921

2022
abstract contract Store {
@@ -90,9 +92,8 @@ abstract contract Store {
9092
// Modified in IexecConfigurationFacet.configure
9193
address m_v3_iexecHub; // IexecHubInterface
9294
mapping(address => bool) m_v3_scoreImported;
93-
/**
94-
* @dev A mapping to store PoCo Boost deals.
95-
*/
95+
// /!\ New storage variables not present in v6 store.
96+
// A mapping to store PoCo Boost deals.
9697
mapping(bytes32 => IexecLibCore_v5.DealBoost) m_dealsBoost;
9798
}
9899

0 commit comments

Comments
 (0)