ChilizWrapperFactory.sol is missing the constructor and its parameters and cannot be compiled
Summary
ChilizWrapperFactory.sol is missing the constructor and its parameters and cannot be compiled
Vulnerability Detail
ChilizWrapperFactory.sol inherits from Ownable.sol, but lacks the constructor and its parameters of the parent class Ownable.sol, resulting in failure to compile
Impact
ChilizWrapperFactory.sol contract cannot be compiled
miaowu
medium
ChilizWrapperFactory.sol
is missing the constructor and its parameters and cannot be compiledSummary
ChilizWrapperFactory.sol
is missing the constructor and its parameters and cannot be compiledVulnerability Detail
ChilizWrapperFactory.sol
inherits fromOwnable.sol
, but lacks the constructor and its parameters of the parent classOwnable.sol
, resulting in failure to compileImpact
ChilizWrapperFactory.sol
contract cannot be compiledCode Snippet
https://github.com/sherlock-audit/2024-02-jala-swap/blob/main/jalaswap-dex-contract/contracts/utils/ChilizWrapperFactory.sol#L11
Tool used
Manual Review
Recommendation
--- a/jalaswap-dex-contract/contracts/utils/ChilizWrapperFactory.sol +++ b/jalaswap-dex-contract/contracts/utils/ChilizWrapperFactory.sol @@ -12,6 +12,8 @@ contract ChilizWrapperFactory is IChilizWrapperFactory, Ownable { mapping(address => address) public underlyingToWrapped; mapping(address => address) public wrappedToUnderlying;
function wrap(address account, address underlyingToken, uint256 amount) public returns (address wrappedToken) { wrappedToken = underlyingToWrapped[underlyingToken]; if (wrappedToken == address(0)) {
Duplicate of #251