Skip to content

Commit

Permalink
fix: dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed May 31, 2024
1 parent a39c1cb commit 5d37d67
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/utils/SelfPermit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// SPDX-License-Identifier: MIT

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC20 } from "solady/tokens/ERC20.sol";

pragma solidity >=0.8.20;

Expand Down
2 changes: 1 addition & 1 deletion test/UnsETH.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract UnsETHTest is Test, ERC721Receiver {
unsETH = UnsETH(payable(address(new ERC1967Proxy(unsETH_impl, ""))));
unsETH.initialize();

myETH = new MockERC20("MyETH", "myETH", 18);
myETH = new MockERC20("MyETH", "myETH");
myETH.mint(address(this), 1000 ether);
vm.mockCall(registry, abi.encodeWithSignature("adapters(address)", (address(myETH))), abi.encode(adapter));
}
Expand Down
18 changes: 16 additions & 2 deletions test/helpers/MockERC20.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
pragma solidity >=0.8.20;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { ERC20 } from "solady/tokens/ERC20.sol";

contract MockERC20 is ERC20 {
constructor(string memory _name, string memory _symbol, uint8 _decimals) ERC20(_name, _symbol, _decimals) { }
string private _name;
string private _symbol;

constructor(string memory name, string memory symbol) ERC20() {
_name = name;
_symbol = symbol;
}

function name() public view override returns (string memory) {
return _name;
}

function symbol() public view override returns (string memory) {
return _symbol;
}

function mint(address to, uint256 value) public virtual {
_mint(to, value);
Expand Down
4 changes: 2 additions & 2 deletions test/lpETH/LpETH.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ contract LPETH_Test is Test {
LpETH lpETH;

function setUp() public {
token1 = new MockERC20("Token1", "T1", 18);
token2 = new MockERC20("Token 2", "T2", 18);
token1 = new MockERC20("Token1", "T1");
token2 = new MockERC20("Token 2", "T2");
registry = new Registry();
lpToken = new LPToken();
ConstructorConfig memory config =
Expand Down

0 comments on commit 5d37d67

Please sign in to comment.