Skip to content

Commit

Permalink
Fix unused import in contract templates (#2)
Browse files Browse the repository at this point in the history
* Update templates

* Update CHANGELOG

* Bump version
  • Loading branch information
Maksim Daunarovich authored Jun 3, 2021
1 parent 38ae86a commit bc17249
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### 0.1.2 -- 2021-06-02
- Regenerated templates to remove unused import, which would trigger linter.

### 0.1.1 -- 2021-06-02
- Regenerated templates to import `flow-cadut`
- Regenerated templates to import `flow-cadut`.

### 0.1.0 -- 2021-06-02
- First release
- First release.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flow-cadut",
"version": "0.1.1",
"version": "0.1.2",
"description": "Flow Cadence Template Utilities",
"author": "Maksim Daunarovich",
"license": "Apache-2.0",
Expand Down
3 changes: 1 addition & 2 deletions src/templates/contract.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { deployContract } from '{{ ixDependency }}'
import {
getEnvironment,
replaceImportAddresses,
reportMissingImports,
reportMissing
reportMissingImports
} from 'flow-cadut'

export const CODE = `
Expand Down
18 changes: 9 additions & 9 deletions src/templates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ templates["contract"] = template({
})
: helper)
) +
"'\n\nimport {\n getEnvironment,\n replaceImportAddresses,\n reportMissingImports,\n reportMissing\n} from 'flow-cadut'\n\nexport const CODE = `\n " +
"'\n\nimport {\n getEnvironment,\n replaceImportAddresses,\n reportMissingImports\n} from 'flow-cadut'\n\nexport const CODE = `\n " +
((stack1 =
((helper =
(helper =
Expand All @@ -176,7 +176,7 @@ templates["contract"] = template({
name: "code",
hash: {},
data: data,
loc: { start: { line: 11, column: 2 }, end: { line: 11, column: 14 } },
loc: { start: { line: 10, column: 2 }, end: { line: 10, column: 14 } },
})
: helper)) != null
? stack1
Expand All @@ -194,7 +194,7 @@ templates["contract"] = template({
name: "assetName",
hash: {},
data: data,
loc: { start: { line: 15, column: 38 }, end: { line: 15, column: 53 } },
loc: { start: { line: 14, column: 38 }, end: { line: 14, column: 53 } },
})
: helper)
) +
Expand All @@ -211,7 +211,7 @@ templates["contract"] = template({
name: "assetName",
hash: {},
data: data,
loc: { start: { line: 18, column: 13 }, end: { line: 18, column: 28 } },
loc: { start: { line: 17, column: 13 }, end: { line: 17, column: 28 } },
})
: helper)
) +
Expand All @@ -228,7 +228,7 @@ templates["contract"] = template({
name: "name",
hash: {},
data: data,
loc: { start: { line: 26, column: 39 }, end: { line: 26, column: 49 } },
loc: { start: { line: 25, column: 39 }, end: { line: 25, column: 49 } },
})
: helper)
) +
Expand All @@ -245,7 +245,7 @@ templates["contract"] = template({
name: "assetName",
hash: {},
data: data,
loc: { start: { line: 33, column: 10 }, end: { line: 33, column: 25 } },
loc: { start: { line: 32, column: 10 }, end: { line: 32, column: 25 } },
})
: helper)
) +
Expand All @@ -262,7 +262,7 @@ templates["contract"] = template({
name: "assetName",
hash: {},
data: data,
loc: { start: { line: 38, column: 14 }, end: { line: 38, column: 29 } },
loc: { start: { line: 37, column: 14 }, end: { line: 37, column: 29 } },
})
: helper)
) +
Expand All @@ -279,7 +279,7 @@ templates["contract"] = template({
name: "assetName",
hash: {},
data: data,
loc: { start: { line: 39, column: 21 }, end: { line: 39, column: 36 } },
loc: { start: { line: 38, column: 21 }, end: { line: 38, column: 36 } },
})
: helper)
) +
Expand All @@ -296,7 +296,7 @@ templates["contract"] = template({
name: "contractName",
hash: {},
data: data,
loc: { start: { line: 40, column: 16 }, end: { line: 40, column: 34 } },
loc: { start: { line: 39, column: 16 }, end: { line: 39, column: 34 } },
})
: helper)
) +
Expand Down

0 comments on commit bc17249

Please sign in to comment.