Skip to content

Commit

Permalink
fix: oz 4626 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Jan 29, 2024
1 parent fbc53a6 commit 97d777b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions contracts/test/ERC4626BaseStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract contract ERC4626BaseStrategy is ERC4626 {
constructor(
address _vault,
address _asset
) ERC4626(IERC20Metadata(address(_asset))) {
) ERC4626(IERC20(address(_asset))) {
_initialize(_vault, _asset);
}

Expand All @@ -30,13 +30,7 @@ abstract contract ERC4626BaseStrategy is ERC4626 {
vault = _vault;
}

function decimals()
public
view
virtual
override(ERC20, IERC20Metadata)
returns (uint8)
{
function decimals() public view virtual override returns (uint8) {
return _decimals;
}

Expand Down

0 comments on commit 97d777b

Please sign in to comment.