Quick heads-up on a bug I found in the compiler:
this error:
thread 'main' panicked at sway-core/src/semantic_analysis/ast_node/expression/typed_expression/method_application.rs:127:26:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
can be removed by changing all .value
s to .into()
s. Isn’t applicable to the newer versions of the compiler since it forces you to write into()
s, but worth pointing out.
The above code was compilable under v0.49.3
and below (basically, you could access the .value
field in the structs which is private now and not allowed under the newer versions.