-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add negative test case for implicit init feature
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import "@stdlib/deploy"; | ||
|
||
contract MyContract with Deployable { | ||
counter: Int = 0; | ||
test_field: Int; | ||
|
||
receive("increment") { | ||
self.counter += 1; | ||
} | ||
|
||
get fun getCounter(): Int { | ||
return self.counter; | ||
} | ||
|
||
get fun getTestField(): Int { | ||
return self.test_field; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"projects": [ | ||
{ | ||
"name": "implicit-init-2", | ||
"path": "./features/implicit-init-2.tact", | ||
"output": "./features/output", | ||
"options": { | ||
"debug": true | ||
} | ||
} | ||
] | ||
} |