Skip to content

Commit 15799c1

Browse files
committed
fix procedural generation
1 parent 7940c68 commit 15799c1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

scripts/generate/templates/Checkpoints.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const { OPTS } = require('./Checkpoints.opts.js');
55
const header = `\
66
pragma solidity ^0.8.19;
77
8-
import "../math/Math.sol";
9-
import "../math/SafeCast.sol";
8+
import {Math} from "../math/Math.sol";
9+
import {SafeCast} from "../math/SafeCast.sol";
1010
1111
/**
1212
* @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";
2121

2222
const errors = `\
2323
/**
24-
* @dev A value was attempted to be inserted on a past checkpoint.
24+
* @dev A value was attempted to be inserted on a past checkpoint.
2525
*/
2626
error CheckpointUnorderedInsertion();
2727
`;

scripts/generate/templates/Checkpoints.t.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const { OPTS } = require('./Checkpoints.opts.js');
66
const header = `\
77
pragma solidity ^0.8.19;
88
9-
import "forge-std/Test.sol";
10-
import "../../../contracts/utils/math/SafeCast.sol";
11-
import "../../../contracts/utils/structs/Checkpoints.sol";
9+
import {Test} from "forge-std/Test.sol";
10+
import {SafeCast} from "../../../contracts/utils/math/SafeCast.sol";
11+
import {Checkpoints} from "../../../contracts/utils/structs/Checkpoints.sol";
1212
`;
1313

1414
/* eslint-disable max-len */

scripts/generate/templates/EnumerableMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const TYPES = [
1212
const header = `\
1313
pragma solidity ^0.8.19;
1414
15-
import "./EnumerableSet.sol";
15+
import {EnumerableSet} from "./EnumerableSet.sol";
1616
1717
/**
1818
* @dev Library for managing an enumerable variant of Solidity's

0 commit comments

Comments
 (0)