sway icon indicating copy to clipboard operation
sway copied to clipboard

🌴 Empowering everyone to build reliable and efficient smart contracts.

Results 975 sway issues
Sort by recently updated
recently updated
newest added

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

bug
P: critical
compiler: frontend

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

This PR adds support for attaching Attributes to fields of enums and structs. The primary motivation was to remove this hack introduced in https://github.com/FuelLabs/sway/pull/2516: https://github.com/FuelLabs/sway/blob/afb59ca69615e9a1e65ea54a4ae3c6f3e357ba64/sway-parse/src/item/mod.rs#L78-L96 The second commit is for...

language feature
compiler: parser

Closes https://github.com/FuelLabs/sway/issues/2384. This implements parser recovery and introduces its use for `pub impl ...` and friends. More instances of parser recovery can be added over time -- there's really no...

compiler: parser
compiler: ui

Previously, a user could be mistaken for thinking a single plugin could only ever provide a single command. This note should help clarify that a plugin can provide more than...

forc
documentation

Closes #2386

P: critical
ABI
compiler: frontend
compiler: parser

Not quite there yet, but I'm out of time for today. Currently failing to run e2e tests locally with: ``` Compiling should_fail/vec_swap_param2_out_of_bounds Compiled library "core". Compiled library "std". Compiled script...

- Renamed visit_expr() to expr_leaf_spans() in sfv2 #2509 - Used while let in place of for in peekable() iterations in sfv2 #2496

forc
code quality