Mohammad Fawaz

Results 104 issues of Mohammad Fawaz

Example: ```rust contract; abi MyContract { fn test_function(); } abi MyContract2 { #[storage(read)] fn test_function2(); } storage { b: b256 = 0x0000000000000000000000000000000000000000000000000000000000000000, } impl MyContract2 for Contract { #[storage(read)] fn...

bug
P: critical
compiler: frontend

Closes #2386

P: critical
ABI
compiler: frontend
compiler: parser

The parser does not currently have error recovery in most places. This means that if a program has multiple parsing errors, we are going to only emit one of them...

compiler: parser
compiler: ui

Example: ```rust contract; abi MyContract { fn test_function(); } impl MyContract for Contract { #[typo] fn test_function() { } } ``` This builds fine. However, we should probably be checking...

bug
P: critical
compiler: frontend
compiler: parser

Example: ```rust script; fn main() {} fn foo(self) {} ``` Rust errors out with: `^^^^^ not semantically valid as function parameter` but we do not error out.

bug
P: high
compiler: frontend

https://github.com/FuelLabs/sway/pull/2218 introduces the `typeArgument` field to the JSON ABI which got us one step closer to supporting (resolved) generics in the ABI. However, as @iqdecay pointed out, this doesn't solve...

bug
P: critical
ABI

For example, it would be nice to be able to write: ```rust struct Wrapper { map1: StorageMap = StorageMap {}, map2: StorageMap = StorageMap {}, } storage { wrapper: Wrapper...

compiler: ir
language feature
compiler: frontend
compiler: codegen

This is probably the first page that new comers look at and try to follow so it should really be constantly up-to-date and in the best shape possible. There are...

good first issue
The Sway Book

Below are some examples that should not compile but do. I bundled those together in the same issue because they are somewhat related and there may be others. Whoever takes...

bug
P: high
compiler: ui

Example ```rust contract; storage { name: str[4] = "test", } ``` Error: ```rust thread 'main' panicked at 'assertion failed: s.len() % 8 == 0', sway-core/src/ir_generation/storage.rs:191:13 ``` Interrestingly: * Sizes 1,...

bug
compiler: ir
P: critical