chore: fix typos and link update

Signed-off-by: snoppy <michaleli@foxmail.com>
pull/2453/head
snoppy 7 months ago
parent fdf54f624d
commit 0dca6a6760
No known key found for this signature in database
GPG Key ID: 3BD0415EDC5AD262
  1. 2
      slither/tools/documentation/README.md
  2. 4
      slither/visitors/expression/read_var.py
  3. 2
      slither/visitors/slithir/expression_to_slithir.py
  4. 2
      slither/vyper_parsing/declarations/contract.py

@ -1,5 +1,5 @@
# slither-documentation
`slither-documentation` uses [codex](https://beta.openai.com) to generate natspec documenation.
`slither-documentation` uses [codex](https://platform.openai.com) to generate natspec documenation.
This tool is experimental. See [solmate documentation](https://github.com/montyly/solmate/pull/1) for an example of usage.

@ -50,8 +50,8 @@ class ReadVar(ExpressionVisitor):
self._result = list(set(get(self.expression)))
return self._result
# overide assignement
# dont explore if its direct assignement (we explore if its +=, -=, ...)
# override assignment
# dont explore if its direct assignment (we explore if its +=, -=, ...)
def _visit_assignement_operation(self, expression: AssignmentOperation) -> None:
if expression.type != AssignmentOperationType.ASSIGN:
self._visit_expression(expression.expression_left)

@ -188,7 +188,7 @@ class ExpressionToSlithIR(ExpressionVisitor):
right = get(expression.expression_right)
operation: Operation
if isinstance(left, list): # tuple expression:
if isinstance(right, list): # unbox assigment
if isinstance(right, list): # unbox assignment
assert len(left) == len(right)
for idx, _ in enumerate(left):
if (

@ -84,7 +84,7 @@ class ContractVyper: # pylint: disable=too-many-instance-attributes
self._structuresNotParsed.append(node)
elif isinstance(node, ImportFrom):
# TOOD aliases
# We create an `InterfaceDef` sense the compilatuion unit does not contain the actual interface
# We create an `InterfaceDef` sense the compilation unit does not contain the actual interface
# https://github.com/vyperlang/vyper/tree/master/vyper/builtins/interfaces
if node.module == "vyper.interfaces":
interfaces = {

Loading…
Cancel
Save