Skip to content

v0.66.0

Compare
Choose a tag to compare
@digorithm digorithm released this 09 Aug 23:30
· 38 commits to master since this release
93f515e

What's Changed

Breaking changes

  • SizedAsciiString no longer implements AsRef<[u8]>. To get the underlying bytes, you can turn it into a &str via the new AsRef<str> and call as_bytes() on the &str: sized_string.as_ref().as_bytes().
  • build_without_signatures is now achieved by setting the build strategy to BuildStrategy::NoSignatures on the transaction builder before calling build.
  • .simulate() now accepts an Execution argument, allowing for realistic or state-read-only simulations.
  • fee_checked_from_tx is removed from all transaction builders. The max fee can now be estimated using the new method estimate_max_fee, which considers the maximum fee estimation tolerance set on the builders.
  • The SDK previously performed transaction validity checks, including signature verification, before sending a transaction to the network. This was problematic since the checks also included signature verification, even when UTXO validation was turned off. To enable this feature and prevent future issues like failed validation checks due to version mismatches between the network and the SDK's upstream dependencies, we decided to remove the check. Since the SDK already abstracts building transactions for common cases (contract calls, transfers, etc.), validity issues are unlikely.
  • Contract::new is removed and replaced with Contract::regular.
  • Contract now accepts a generic argument denoting the type of contract (regular, loader, etc.)

New Contributors

Full Changelog: v0.65.1...v0.66.0