From d1c82dee904e239b412476ca960a8f15b01fd74c Mon Sep 17 00:00:00 2001 From: Yorke Rhodes Date: Wed, 18 May 2022 10:16:57 -0700 Subject: [PATCH] Add back initializing guard to Common initializer (#447) Enforces that `Inbox.initialize` and `Outbox.initialize` functions have `initializer` modifiers --- solidity/core/contracts/Common.sol | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/solidity/core/contracts/Common.sol b/solidity/core/contracts/Common.sol index d7af4b5a1..7a7fdbee4 100644 --- a/solidity/core/contracts/Common.sol +++ b/solidity/core/contracts/Common.sol @@ -68,7 +68,10 @@ abstract contract Common is ICommon, OwnableUpgradeable { // ============ Initializer ============ - function __Common_initialize(address _validatorManager) internal { + function __Common_initialize(address _validatorManager) + internal + onlyInitializing + { // initialize owner __Ownable_init(); _setValidatorManager(_validatorManager);