Skip to content

Commit

Permalink
enable back initialization checks
Browse files Browse the repository at this point in the history
  • Loading branch information
zajck committed Sep 14, 2023
1 parent ad8db17 commit be779d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/protocol/bases/ProtocolBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract contract ProtocolBase is PausableBase, ReentrancyGuardBase {
*/
modifier onlyUninitialized(bytes4 interfaceId) {
ProtocolLib.ProtocolStatus storage ps = protocolStatus();
// require(!ps.initializedInterfaces[interfaceId], ALREADY_INITIALIZED);
require(!ps.initializedInterfaces[interfaceId], ALREADY_INITIALIZED);
ps.initializedInterfaces[interfaceId] = true;
_;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contract ProtocolInitializationHandlerFacet is IBosonProtocolInitializationHandl
*/
modifier onlyUninitializedVersion(bytes32 _version) {
ProtocolLib.ProtocolStatus storage ps = protocolStatus();
// require(!ps.initializedVersions[_version], ALREADY_INITIALIZED);
require(!ps.initializedVersions[_version], ALREADY_INITIALIZED);
ps.initializedVersions[_version] = true;
_;
}
Expand Down Expand Up @@ -154,7 +154,7 @@ contract ProtocolInitializationHandlerFacet is IBosonProtocolInitializationHandl
*/
function initV2_3_0(bytes calldata _initializationData) internal {
// Current version must be 2.2.1
// require(protocolStatus().version == bytes32("2.2.1"), WRONG_CURRENT_VERSION);
require(protocolStatus().version == bytes32("2.2.1"), WRONG_CURRENT_VERSION);

require(protocolCounters().nextTwinId == 1, TWINS_ALREADY_EXIST);

Expand All @@ -173,7 +173,7 @@ contract ProtocolInitializationHandlerFacet is IBosonProtocolInitializationHandl
emit MinResolutionPeriodChanged(_minResolutionPeriod, msgSender());

// Deploy a new voucher proxy
// protocolAddresses().beaconProxy = address(new BeaconClientProxy{ salt: VOUCHER_PROXY_SALT }());
protocolAddresses().beaconProxy = address(new BeaconClientProxy{ salt: VOUCHER_PROXY_SALT }());
}

/**
Expand Down

0 comments on commit be779d1

Please sign in to comment.