FuelLabs / sway-libs

Miscellaneous Sway libraries.
https://docs.fuel.network/docs/sway-libs/
Apache License 2.0
146 stars 61 forks source link

Update to forc v0.60.0 #250

Closed bitzoic closed 5 months ago

bitzoic commented 5 months ago

Type of change

Changes

The following changes have been made:

Breaking Changes

Public struct fields are now PRIVATE in the fixed_point and signed_integers libraries. If the fields are needed, they can be fetched with a corresponding my_type.underlying() function. For example, I8's underlying u8 may be fetched with:

let my_i8: I8 = I8::zero();
let underlying: u8 = my_i8.underlying();

For types that have a non_negative field, the same applies:

let my_ifp64: IFP64 = IFP64::zero();
let non_negative: bool = my_ifp64.non_negative();
bitzoic commented 5 months ago

Dependent on https://github.com/FuelLabs/sway-standards/pull/96