Skip to content

Commit 8deffd7

Browse files
authored
Update const_functions_asm.py
1 parent 6b3ecec commit 8deffd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slither/detectors/attributes/const_functions_asm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ConstantFunctionsAsm(AbstractDetector):
2525
Functions declared as `constant`/`pure`/`view` using assembly code.
2626
2727
`constant`/`pure`/`view` was not enforced prior to Solidity 0.5.
28-
Starting from Solidity 0.5, a call to a `caonstant`/`pure`/`view` function uses the `STATICCALL` opcode, which reverts in case of state modification.
28+
Starting from Solidity 0.5, a call to a `constant`/`pure`/`view` function uses the `STATICCALL` opcode, which reverts in case of state modification.
2929
3030
As a result, a call to an [incorrectly labeled function may trap a contract compiled with Solidity 0.5](https://solidity.readthedocs.io/en/develop/050-breaking-changes.html#interoperability-with-older-contracts)."""
3131
# endregion wiki_description

0 commit comments

Comments
 (0)