Changes:
-
Credential definition
Change script hash and key hash definition order in credential enum to respect cardano ledger behavior -
CBOR parsing
- Swapped
assert!(len==2)
for a properErr(CustomError)
on invalid array length
- Swapped
-
Transaction builders
with_asset_and_min_required_coin_by_utxo_cost
refactored to:- take into account an output address
- compute required ADA in one pass
-
Withdrawals
- Swapped
LinkedHashMap
→BTreeMap
for deterministic ordering - Updated sort logic so script-withdrawals come before key-withdrawals in accordance with ledger implementation
- Swapped
-
Static assertions
- Removed obsolete
static_assert!
inlegacy_address/cbor.rs
- Removed obsolete
-
Tests
- correct withdrawal sorting order
Published
https://www.npmjs.com/package/@emurgo/cardano-serialization-lib-browser/v/14.1.2
https://www.npmjs.com/package/@emurgo/cardano-serialization-lib-nodejs/v/14.1.2
https://www.npmjs.com/package/@emurgo/cardano-serialization-lib-asmjs/v/14.1.2
https://crates.io/crates/cardano-serialization-lib/14.1.2
Experimental packages with gc support
https://www.npmjs.com/package/@emurgo/cardano-serialization-lib-nodejs-gc/v/14.1.2
https://www.npmjs.com/package/@emurgo/cardano-serialization-lib-browser-gc/v/14.1.2
https://www.npmjs.com/package/@emurgo/cardano-serialization-lib-asmjs-gc/v/14.1.2
Full Changelog: 14.1.1...14.1.2