FuelLabs / sway

🌴 Empowering everyone to build reliable and efficient smart contracts.
https://docs.fuel.network/docs/sway/
Apache License 2.0
62.76k stars 5.36k forks source link

Fixes panic error on decl_to_type_info. #6552

Closed esdrubal closed 1 week ago

esdrubal commented 1 week ago

Description

Doing an unwrap without checking if the value was none was causing a panic. Fixed by throwing an error so we can also see the previous errors.

Fixes #6330

Checklist

codspeed-hq[bot] commented 1 week ago

CodSpeed Performance Report

Merging #6552 will not alter performance

Comparing esdrubal/panic_in_decl_to_type_info (4b4019b) with master (a073a95)

Summary

✅ 22 untouched benchmarks