Disallow loos assembly in Solidity by permanently setting it to SyntaxError (from Warning)

This commit is contained in:
Christian Parpart
2018-08-02 13:36:05 +01:00
committed by Alex Beregszaszi
parent 6003ed2abd
commit 5d9320c70b
16 changed files with 17 additions and 56 deletions
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
// Warning: (58-65): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
// SyntaxError: (58-65): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
@@ -4,5 +4,4 @@ contract C {
}
}
// ----
// Warning: (63-70): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
// TypeError: (63-70): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
// SyntaxError: (63-70): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.