Skip to content

Commit

Permalink
fix(imports): use . instead of src
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Jun 21, 2023
1 parent 97080d1 commit 54116fe
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/ERC2330.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;

import {IERC2330} from "src/interfaces/IERC2330.sol";
import {IERC2330} from "./interfaces/IERC2330.sol";

/// @dev Gas-optimized extsload getters to allow anyone to read storage from this contract.
/// Enables the benefit of https://eips.ethereum.org/EIPS/eip-2330 without requiring changes to the execution layer.
Expand Down
6 changes: 3 additions & 3 deletions src/ERC3156xFlashBorrower.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;

import {IERC3156xFlashLender} from "src/interfaces/IERC3156xFlashLender.sol";
import {IERC3156xFlashBorrower} from "src/interfaces/IERC3156xFlashBorrower.sol";
import {IERC3156xFlashLender} from "./interfaces/IERC3156xFlashLender.sol";
import {IERC3156xFlashBorrower} from "./interfaces/IERC3156xFlashBorrower.sol";

import {SafeTransferLib, ERC20} from "@solmate/utils/SafeTransferLib.sol";

import {FLASH_BORROWER_SUCCESS_HASH} from "src/ERC3156xFlashLender.sol";
import {FLASH_BORROWER_SUCCESS_HASH} from "./ERC3156xFlashLender.sol";

contract ERC3156xFlashBorrower is IERC3156xFlashBorrower {
using SafeTransferLib for ERC20;
Expand Down
4 changes: 2 additions & 2 deletions src/ERC3156xFlashLender.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;

import {IERC3156xFlashLender} from "src/interfaces/IERC3156xFlashLender.sol";
import {IERC3156xFlashBorrower} from "src/interfaces/IERC3156xFlashBorrower.sol";
import {IERC3156xFlashLender} from "./interfaces/IERC3156xFlashLender.sol";
import {IERC3156xFlashBorrower} from "./interfaces/IERC3156xFlashBorrower.sol";

import {SafeTransferLib, ERC20} from "@solmate/utils/SafeTransferLib.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/ERC712.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;

import {IERC712} from "src/interfaces/IERC712.sol";
import {IERC712} from "./interfaces/IERC712.sol";

/// @dev The prefix used for EIP-712 signature.
string constant ERC712_MSG_PREFIX = "\x19\x01";
Expand Down
2 changes: 1 addition & 1 deletion src/access/Ownable2Step.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.0;

import {IOwnable2Step} from "src/interfaces/access/IOwnable2Step.sol";

import {Ownable} from "src/access/Ownable.sol";
import {Ownable} from "./access/Ownable.sol";

/// @notice Gas-optimized Ownable2Step helpers.
/// @dev Reference: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable2Step.sol
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IERC3156xFlashBorrower.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface IERC3156xFlashBorrower {
/// @param amount The amount of tokens lent.
/// @param fee The additional amount of tokens to repay.
/// @param data Arbitrary data structure, intended to contain user-defined parameters.
/// @return The keccak256 hash of "IERC3156FlashBorrower.onFlashLoan" and any additional arbitrary data.
/// @return The keccak256 hash of "IERC3156xFlashBorrower.onFlashLoan" and any additional arbitrary data.
function onFlashLoan(address initiator, address token, uint256 amount, uint256 fee, bytes calldata data)
external
returns (bytes32, bytes memory);
Expand Down

0 comments on commit 54116fe

Please sign in to comment.