Use explicit imports (#4399)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
@ -5,8 +5,8 @@ const { OPTS } = require('./Checkpoints.opts.js');
|
||||
const header = `\
|
||||
pragma solidity ^0.8.19;
|
||||
|
||||
import "../math/Math.sol";
|
||||
import "../math/SafeCast.sol";
|
||||
import {Math} from "../math/Math.sol";
|
||||
import {SafeCast} from "../math/SafeCast.sol";
|
||||
|
||||
/**
|
||||
* @dev This library defines the \`History\` struct, for checkpointing values as they change at different points in
|
||||
@ -21,7 +21,7 @@ import "../math/SafeCast.sol";
|
||||
|
||||
const errors = `\
|
||||
/**
|
||||
* @dev A value was attempted to be inserted on a past checkpoint.
|
||||
* @dev A value was attempted to be inserted on a past checkpoint.
|
||||
*/
|
||||
error CheckpointUnorderedInsertion();
|
||||
`;
|
||||
|
||||
@ -6,9 +6,9 @@ const { OPTS } = require('./Checkpoints.opts.js');
|
||||
const header = `\
|
||||
pragma solidity ^0.8.19;
|
||||
|
||||
import "forge-std/Test.sol";
|
||||
import "../../../contracts/utils/math/SafeCast.sol";
|
||||
import "../../../contracts/utils/structs/Checkpoints.sol";
|
||||
import {Test} from "forge-std/Test.sol";
|
||||
import {SafeCast} from "../../../contracts/utils/math/SafeCast.sol";
|
||||
import {Checkpoints} from "../../../contracts/utils/structs/Checkpoints.sol";
|
||||
`;
|
||||
|
||||
/* eslint-disable max-len */
|
||||
|
||||
@ -12,7 +12,7 @@ const TYPES = [
|
||||
const header = `\
|
||||
pragma solidity ^0.8.19;
|
||||
|
||||
import "./EnumerableSet.sol";
|
||||
import {EnumerableSet} from "./EnumerableSet.sol";
|
||||
|
||||
/**
|
||||
* @dev Library for managing an enumerable variant of Solidity's
|
||||
|
||||
Reference in New Issue
Block a user