Skip to content

Commit b23a0be

Browse files
committed
generate WithInit variant on abstract contracts
1 parent 39d7764 commit b23a0be

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-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.21 (2023-02-17)
4+
5+
- Generate `WithInit` contract variant for abstract but fully implemented contracts.
6+
37
## 0.3.20 (2023-02-11)
48

59
- Fix support for immutable variables of user defined value types.

src/generate-with-init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function generateWithInit(
2323

2424
for (const sourceUnit of transform.asts()) {
2525
for (const contract of findAll('ContractDefinition', sourceUnit)) {
26-
if (contract.contractKind !== 'contract' || contract.abstract) {
26+
if (contract.contractKind !== 'contract' || !contract.fullyImplemented) {
2727
continue;
2828
}
2929

0 commit comments

Comments
 (0)