Skip to content

0.5.0

Compare
Choose a tag to compare
@ChaoticTempest ChaoticTempest released this 01 Sep 22:54
· 105 commits to main since this release

This release contains a lot breaking changes, and finally removes the requirement of having to provide worker to each function call when submitting a transaction or view request. For a full list of the breaking changes look below:

Added

  • Error handling with opaque workspaces::error::Error type: #149
  • Require #[must_use] on the Execution value returned by transact(): #150
    • Added ExecutionFinalResult, ExecutionResult, ExecutionSuccess and ExecutionFailure types
    • Added into_result() to easily handle #[must_use] ExecutionFinalResult
    • Added unwrap() to not care about Err variant in ExecutionResults

Changed

  • Renamed CallExecution* types: #150
    • Renamed CallExecution`` to Execution`
    • Renamed CallExecutionDetails to ExecutionFinalResult
  • args_json and args_borsh no longer return Results and are deferred till later when transact()ed: #149
  • API changes from removing worker parameter from function calls: #181
    • Account::from_file function signature change, requiring a &worker to be passed in.
    • workspaces::prelude::* import no longer necessary, where we no longer able to import workspaces::prelude::DevAccountDeployer directly.

Removed

  • Removed impls from exection result: #150
    • Removed impl<T> From<CallExecution<T>> for Result<T>
    • Removed impl From<FinalExecutionOutcomeView> for CallExecutionDetails
  • No longer require worker to be passed in for each transaction: #181

Fixed

  • Gas estimation issue resolved with latest sandbox node (Aug 29, 2022): #188
  • Fixed parallel tests, where calling into the same contract would require waiting on a previous call: #173