Skip to content

Commit ca3d7e2

Browse files
committed
add license header to withinit
1 parent 45c9d9b commit ca3d7e2

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.3.19 (2022-09-24)
4+
5+
- Add license header to WithInit.sol.
6+
37
## 0.3.18 (2022-09-23)
48

59
- Fix ignored `-b` flag.

src/generate-with-init.test.ts.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Generated by [AVA](https://avajs.dev).
88

99
> Snapshot 1
1010
11-
`pragma solidity >=0.6 <0.9;␊
11+
`// SPDX-License-Identifier: UNLICENSED␊
12+
pragma solidity >=0.6 <0.9;␊
1213
pragma experimental ABIEncoderV2;␊
1314
1415
import "./GenerateWithInitUpgradeable.sol";␊

src/generate-with-init.test.ts.snap

31 Bytes
Binary file not shown.

src/generate-with-init.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export function generateWithInit(
1515
): string {
1616
const pragmaVersion = satisfies(solcVersion, '>=0.7') ? '0.7' : '0.6';
1717
const res: Line[] = [
18+
`// SPDX-License-Identifier: UNLICENSED`,
1819
`pragma solidity >=${pragmaVersion} <0.9;`,
1920
`pragma experimental ABIEncoderV2;`,
2021
``,

0 commit comments

Comments
 (0)