diff --git a/CHANGELOG.md b/CHANGELOG.md index 6773fc48..5d152ddb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.3.21 (2023-02-17) + +- Generate `WithInit` contract variant for abstract but fully implemented contracts. + ## 0.3.20 (2023-02-11) - Fix support for immutable variables of user defined value types. diff --git a/src/generate-with-init.ts b/src/generate-with-init.ts index c620b84e..921aec06 100644 --- a/src/generate-with-init.ts +++ b/src/generate-with-init.ts @@ -23,7 +23,7 @@ export function generateWithInit( for (const sourceUnit of transform.asts()) { for (const contract of findAll('ContractDefinition', sourceUnit)) { - if (contract.contractKind !== 'contract' || contract.abstract) { + if (contract.contractKind !== 'contract' || !contract.fullyImplemented) { continue; }