Skip to content

Commit

Permalink
feat: update to vyper 0.3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Nov 25, 2023
1 parent c70f80f commit b249bdb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dasy/builtin/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def build_IR(self, expr, context):

STMT_DISPATCH_TABLE[IDENTIFIER] = generated_builtin()

return phases.generate_ast(insert_code, 0, "").body[0]
return phases.generate_ast(insert_code, 0, "")[1].body[0]


def parse_vyper(expr):
return phases.generate_ast(str(expr[1]), 0, "").body[0]
return phases.generate_ast(str(expr[1]), 0, "")[1].body[0]


def wrap_calls(nodes):
Expand Down
4 changes: 2 additions & 2 deletions examples/nonreentrant.dasy
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(defn func0 [] [:external (nonreentrant "lock")]
(raw_call msg/sender b"" :value 0))

(defn func1 [] [:external (nonreentrant "lock-2")]
(defn func1 [] [:external (nonreentrant "lock_2")]
(raw_call msg/sender b"" :value 0))

(defn func2 [] [:external (nonreentrant "lock-2")]
(defn func2 [] [:external (nonreentrant "lock_2")]
(raw_call msg/sender b"" :value 0))
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[tool.poetry]
name = "dasy"
version = "0.1.26"
version = "0.1.27"
description = ""
authors = ["z80 <z80@ophy.xyz>"]

[tool.poetry.dependencies]
python = ">=3.10, <3.11"
python = ">=3.10, <3.12"
argparse = "^1.4.0"
dasy-hy = "0.24.1"
dasy-hy = "0.24.2"
titanoboa = "0.1.7"
hyrule = "^0.2"
pytest = "^7.1.3"
vyper = "^0.3.9"
vyper = "^0.3.10"
eth-abi = "^4.0.0"
eth-typing = "^3.2.0"
py-evm = ">=0.6.1a2"
Expand Down

0 comments on commit b249bdb

Please sign in to comment.