Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 9, 2023
1 parent 4dd47e3 commit b75f46b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vyper/cli/vyper_serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import vyper
from vyper.codegen import ir_node
from vyper.compiler.settings import Settings
from vyper.evm.opcodes import DEFAULT_EVM_VERSION
from vyper.exceptions import VyperException

Expand Down Expand Up @@ -91,10 +92,9 @@ def _compile(self, data):

try:
code = data["code"]
settings = Settings(evm_version=data.get("evm_version", DEFAULT_EVM_VERSION))
out_dict = vyper.compile_code(
code,
list(vyper.compiler.OUTPUT_FORMATS.keys()),
evm_version=data.get("evm_version", DEFAULT_EVM_VERSION),
code, output_formats=list(vyper.compiler.OUTPUT_FORMATS.keys()), settings=settings
)
out_dict["ir"] = str(out_dict["ir"])
out_dict["ir_runtime"] = str(out_dict["ir_runtime"])
Expand Down

0 comments on commit b75f46b

Please sign in to comment.