github FuelLabs/sway v0.30.0

latest releases: v0.69.1, v0.69.0, v0.68.9...
2 years ago

What's Changed

Breaking Changes

  • This new version of forc is only compatible with fuel-core v0.13 and up.
  • The raw_ptr library from the standard library has been reworked:
    • The methods add and sub for raw_ptr are now generic and take the offset in number of elements of their type argument.
    • The method copy_to is now generic and takes the copy size in number of elements of its type argument.
  • The alloc library from the standard library has been reworked:
    • The function alloc is now generic and takes the allocation size in number of elements of its type argument.
    • The function realloc is now generic and takes the previous allocation size and the reallocation size in number of elements of its type argument.
  • The forc-explore plugin has been removed.
  • It is now disallow to reassign registers in an asm block that have initializers in the block's arguments list.
  • The standard library has been slightly restructured:
    • The auth library is now in std::auth instead of std::chain::auth.
    • The call_frames library is now std::call_frames instead of std::context::call_frames.
    • The registers library is now std::registers instead of std::context::registers.
  • The method from() for std::u128::U128 now takes a tuple of two u64 elements instead of two separate u64s.
  • The method from() for std::u256::U256 now takes a tuple of four u64 elements instead of four separate u64s.
  • The method from() for std::b512::B512 now takes a tuple of two b256 elements instead of two separate b256s.
  • The Revert error code for std::revert::require was changed from 42 to 0xffff_ffff_ffff_0000. That is, when a require fails, the Revert receipt will now contain 0xffff_ffff_ffff_0000 instead of 42.

New Contributors

Full Changelog: v0.29.0...v0.30.0

Don't miss a new sway release

NewReleases is sending notifications on new releases.