Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush authored Apr 7, 2024
2 parents e2a2ba7 + 13d7d9f commit 9388750
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions FUNDING.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Optimism": {
"op-mainnet": {
"ownedBy": "0xc44F30Be3eBBEfdDBB5a85168710b4f0e18f4Ff0"
}
}
}
2 changes: 1 addition & 1 deletion examples/printers/human_printer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ contract SimpleVulnerableToken{

/**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @param _owner The address to query the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/
function balanceOf(address _owner) public view returns (uint256) {
Expand Down
2 changes: 1 addition & 1 deletion slither/core/declarations/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ def get_modifier_from_signature(self, modifier_signature: str) -> Optional["Modi

def get_function_from_canonical_name(self, canonical_name: str) -> Optional["Function"]:
"""
Return a function from a a canonical name (contract.signature())
Return a function from a canonical name (contract.signature())
Args:
canonical_name (str): canonical name of the function (without return statement)
Returns:
Expand Down
2 changes: 1 addition & 1 deletion slither/vyper_parsing/cfg/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def analyze_expressions(self, caller_context) -> None:
if self._node.expression:

if self._node.type == NodeType.VARIABLE:
# Update the expression to be an assignement to the variable
# Update the expression to be an assignment to the variable
_expression = AssignmentOperation(
Identifier(self._node.variable_declaration),
self._node.expression,
Expand Down
2 changes: 1 addition & 1 deletion slither/vyper_parsing/declarations/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def _parse_params(self, params: Arguments):
def _parse_returns(self, returns: Union[Name, TupleVyper, Subscript]):

self._function.returns_src().set_offset(returns.src, self._function.compilation_unit)
# Only the type of the arg is given, not a name. We create an an `Arg` with an empty name
# Only the type of the arg is given, not a name. We create an `Arg` with an empty name
# so that the function has the correct return type in its signature but doesn't clash with
# other identifiers during name resolution (`find_variable`).
if isinstance(returns, (Name, Subscript)):
Expand Down

0 comments on commit 9388750

Please sign in to comment.