Skip to content

Commit

Permalink
Merge branch 'master' into fix/if-allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Sep 20, 2023
2 parents ffbc503 + 1711569 commit f41d1a6
Show file tree
Hide file tree
Showing 15 changed files with 665 additions and 132 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/era-tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,20 @@ jobs:
- name: Run tester (fast)
# Run era tester with no LLVM optimizations
continue-on-error: true
if: ${{ github.ref != 'refs/heads/master' }}
run: |
cd era-compiler-tester
cargo run --release --bin compiler-tester -- --path=tests/vyper/ --mode="M0B0 ${{ env.VYPER_VERSION }}"
- name: Run tester (slow)
# Run era tester across the LLVM optimization matrix
continue-on-error: true
if: ${{ github.ref == 'refs/heads/master' }}
run: |
cd era-compiler-tester
cargo run --release --bin compiler-tester -- --path=tests/vyper/ --mode="M*B* ${{ env.VYPER_VERSION }}"
- name: Mark as success
run: |
exit 0
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**Vyper compiler security audit competition starts 14th September with $150k worth of bounties.** [See the competition on CodeHawks](https://www.codehawks.com/contests/cll5rujmw0001js08menkj7hc) and find [more details in this blog post](https://mirror.xyz/0xBA41A04A14aeaEec79e2D694B21ba5Ab610982f1/WTZ3l3MLhTz9P4avq6JqipN5d4HJNiUY-d8zT0pfmXg).

<img src="https://raw.githubusercontent.com/vyperlang/vyper/master/logo/vyper-logo-transparent.svg?sanitize=true" alt="" width="110">

Expand Down
23 changes: 20 additions & 3 deletions tests/parser/exceptions/test_structure_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,26 @@ def double_nonreentrant():
""",
"""
@external
@nonreentrant("B")
@nonreentrant("C")
def double_nonreentrant():
@nonreentrant(" ")
def invalid_nonreentrant_key():
pass
""",
"""
@external
@nonreentrant("")
def invalid_nonreentrant_key():
pass
""",
"""
@external
@nonreentrant("123")
def invalid_nonreentrant_key():
pass
""",
"""
@external
@nonreentrant("!123abcd")
def invalid_nonreentrant_key():
pass
""",
"""
Expand Down
4 changes: 2 additions & 2 deletions tests/parser/features/decorators/test_nonreentrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def set_callback(c: address):
@external
@payable
@nonreentrant('default')
@nonreentrant("lock")
def protected_function(val: String[100], do_callback: bool) -> uint256:
self.special_value = val
_amount: uint256 = msg.value
Expand All @@ -166,7 +166,7 @@ def unprotected_function(val: String[100], do_callback: bool):
@external
@payable
@nonreentrant('default')
@nonreentrant("lock")
def __default__():
pass
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/parser/test_call_graph_stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from hypothesis import given, settings

import vyper.ast as vy_ast
from vyper.ast.identifiers import RESERVED_KEYWORDS
from vyper.compiler.phases import CompilerData
from vyper.semantics.namespace import RESERVED_KEYWORDS


def _valid_identifier(attr):
Expand Down
Loading

0 comments on commit f41d1a6

Please sign in to comment.