FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
354 stars 86 forks source link

Remove Bug type #752

Closed Dentosal closed 4 months ago

Dentosal commented 4 months ago

Removes Bug and BugVariant types, opting to expect or unreachable! instead, as suggested in audit reports. Since we already catch the rust-level panics in fuel-core, we should move the reporting there. This way, we include all crashes and not just those where we had wrapped it in Bug.

Checklist

Before requesting review

xgreenx commented 4 months ago

As we discussed internally: let's stick with Bug for now to not change the behavior of the current code