Skip to content

Commit

Permalink
fix: Remove redundant __Ownable_init call in Ownable2StepUpgradeable
Browse files Browse the repository at this point in the history
  • Loading branch information
famouswizard authored Jan 28, 2025
1 parent 947fad9 commit 0962bb0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions solidity/contracts/AcreMultiAssetVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,18 @@ contract AcreMultiAssetVault is
address[] memory _supportedAssets
) public initializer {
__Ownable2Step_init();
__Ownable_init(_owner);
__ReentrancyGuard_init();

if (_mezoPortal == address(0)) {
if (_mezoPortal == address(0)) {
revert ZeroAddress();
}
}

mezoPortal = IMezoPortal(_mezoPortal);

for (uint256 i = 0; i < _supportedAssets.length; i++) {
_addSupportedAsset(_supportedAssets[i]);
}
}
}

/// @notice Adds an asset to the list of assets supported by the vault.
/// @dev This function can only be called by the owner.
Expand Down

0 comments on commit 0962bb0

Please sign in to comment.