Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Nov 21, 2024
1 parent 02e8229 commit 4b0eab3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/functional/syntax/exceptions/test_syntax_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,19 @@ def test_bad_staticcall_keyword():
from ethereum.ercs import IERC20Detailed
def foo():
staticcall ERC20(msg.sender).transfer(msg.sender, staticall IERC20Detailed(msg.sender).decimals())
staticcall ERC20(msg.sender).transfer(
msg.sender, staticall IERC20Detailed(msg.sender).decimals())
""".strip()
with pytest.raises(SyntaxException) as e:
compile_code(bad_code)

expected_error = """
Possible typo: `staticall`
line 4:54
3 def foo():
---> 4 staticcall ERC20(msg.sender).transfer(msg.sender, staticall IERC20Detailed(msg.sender).decimals())
-------------------------------------------------------------^
line 5:20
4 staticcall ERC20(msg.sender).transfer(
---> 5 msg.sender, staticall IERC20Detailed(msg.sender).decimals())
---------------------------^
(hint: did you mean `staticcall`?)
""" # noqa
Expand Down

0 comments on commit 4b0eab3

Please sign in to comment.