-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(neverAccessedVariables): False positive on contract constants
These are not supported, so we have to remove the logic introduced here after #22 is implemented.
- Loading branch information
1 parent
af377e9
commit 82b03c4
Showing
13 changed files
with
226 additions
and
163 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
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,25 @@ | ||
{ | ||
"projectName": "never-accessed-4", | ||
"functions": [], | ||
"contracts": [ | ||
{ | ||
"name": "ConstantFieldTest", | ||
"methods": [ | ||
{ | ||
"name": "ConstantFieldTest.test", | ||
"cfg": { | ||
"nodes": [ | ||
{ | ||
"id": 1566, | ||
"stmtID": 21139, | ||
"srcEdges": [], | ||
"dstEdges": [] | ||
} | ||
], | ||
"edges": [] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
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 @@ | ||
|
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,13 @@ | ||
// NOTE: This example won't compile after updating Tact to 1.4.1 | ||
contract ConstantFieldTest { | ||
const val: Int = ton("0.01"); | ||
fun test() { | ||
send(SendParameters{ | ||
to: sender(), | ||
bounce: true, | ||
value: self.val, | ||
mode: SendRemainingValue + SendIgnoreErrors | ||
}); | ||
} | ||
} | ||
|
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
Oops, something went wrong.