You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at 'Yul compilation failed: {"errors":[{"component":"general","formattedMessage":"DeclarationError: Function not found.\n --> input.yul:1:355:\n |\n1 | ... _string0_mem(params_start_mem, 0), abi_decode_string0_mem(params_start_mem, 32)) function co ...\n | ^^^^^^^^^^^^^^^^^^^^^^\n\n","message":"Function not found.","severity":"error","sourceLocation":{"end":376,"file":"input.yul","start":354},"type":"DeclarationError"},{"component":"general","formattedMessage":"TypeError: Expected expression to evaluate to one value, but got 0 values instead.\n --> input.yul:1:355:\n |\n1 | ... _string0_mem(params_start_mem, 0), abi_decode_string0_mem(params_start_mem, 32)) function contract_create2(data_pt ...\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n","message":"Expected expression to evaluate to one value, but got 0 values instead.","severity":"error","sourceLocation":{"end":398,"file":"input.yul","start":354},"type":"TypeError"},{"component":"general","formattedMessage":"DeclarationError: Function not found.\n --> input.yul:1:310:\n |\n1 | ... $l, $e) { let $y := 0 } $$__init__(abi_decode_string0_mem(params_start_mem, 0), abi_decode_s ...\n | ^^^^^^^^^^^^^^^^^^^^^^\n\n","message":"Function not found.","severity":"error","sourceLocation":{"end":331,"file":"input.yul","start":309},"type":"DeclarationError"},{"component":"general","formattedMessage":"TypeError: Expected expression to evaluate to one value, but got 0 values instead.\n --> input.yul:1:310:\n |\n1 | ... $l, $e) { let $y := 0 } $$__init__(abi_decode_string0_mem(params_start_mem, 0), abi_decode_string0_mem(params_sta ...\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n","message":"Expected expression to evaluate to one value, but got 0 values instead.","severity":"error","sourceLocation":{"end":352,"file":"input.yul","start":309},"type":"TypeError"}]}', compiler/src/lib.rs:56:27
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
You've hit an internal compiler error. This is a bug in the Fe compiler.
Fe is still under heavy development, and isn't yet ready for production use.
If you would, please report this bug at the following URL:
https://github.com/ethereum/fe/issues/new
Aborted
Looks like this is happening because the __init__ function is not pub and therefore the functions required for decoding the input are not added to the runtime.
Simple fix is to error if the __init__ function is not pub, which I'm surprised we're not already doing.
Compiling this file:
On latest github master, built with
for fuzzing. Using https://github.com/agroce/afl-compiler-fuzzer
The text was updated successfully, but these errors were encountered: