v0.73.0
Summary
In this release, we:
- Added support for the new abi errors. See the RFC for more information.
Breaking
-
Chores
- #1656 - bump fuel-core to 0.43.2, by @kayagokalp
Chores
- #1657 - bump version to
0.73.0
, by @kayagokalp
Migration Notes
1656 - Bump fuel-core to 0.43.2
1651 - Add support for abi errors
-
LogFormatter
constructors renamed// old let fmt = LogFormatter::new::<MyLog>(); // new // for ordinary logs let fmt = LogFormatter::new_log::<MyLog>(); // for enums tagged with #[error_type] let fmt_err = LogFormatter::new_error::<MyError>();
-
LogDecoder::new
now needs the error-code map from the ABI// old let decoder = LogDecoder::new(formatters); // new use std::collections::HashMap; use fuels::core::codec::{ErrorDetails, LogDecoder}; let formatters = /* HashMap<LogId, LogFormatter> */; let error_codes: HashMap<u64, ErrorDetails> = /* generated by Abigen or hand-built */; let decoder = LogDecoder::new(formatters, error_codes);