Skip to content

Commit

Permalink
generate WithInit variant on abstract contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Feb 17, 2023
1 parent 39d7764 commit b23a0be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/generate-with-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b23a0be

Please sign in to comment.