Skip to content

Commit

Permalink
Fix migrate_db_chrysalis_to_stardust() (#1410)
Browse files Browse the repository at this point in the history
* Fix `migrate_db_chrysalis_to_stardust()` for some ledger nano wallets

* Update release date

* Update Rust version and release date
  • Loading branch information
Thoralf-M authored Oct 11, 2023
1 parent f54a375 commit cdbfd07
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion bindings/nodejs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security -->

## 1.1.1 - 2023-MM-DD
## 1.1.1 - 2023-10-11

### Added

Expand All @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Added `SeedSecretManager` to `SecretManagerType`;
- `migrateDbChrysalisToStardust()` for some ledger nano wallets;

### Removed

Expand Down
3 changes: 2 additions & 1 deletion sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security -->

## 1.1.1 - 2023-MM-DD
## 1.1.1 - 2023-10-11

### Added

Expand All @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Update protocol params and addresses with correct bech32 HRP in `Wallet::set_client_options()`;
- `migrate_db_chrysalis_to_stardust()` for some ledger nano wallets;

## 1.1.0 - 2023-09-29

Expand Down
2 changes: 1 addition & 1 deletion sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iota-sdk"
version = "1.1.0"
version = "1.1.1"
authors = ["IOTA Stiftung"]
edition = "2021"
description = "The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs."
Expand Down
4 changes: 3 additions & 1 deletion sdk/src/wallet/migration/chrysalis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ pub(crate) mod rocksdb {
let value_utf8 =
String::from_utf8(value.to_vec()).map_err(|_| Error::Migration("invalid utf8".into()))?;
// "iota-wallet-key-checksum_value" is never an encrypted value
if key_utf8 == "iota-wallet-key-checksum_value" {
// "FIRST_LEDGER_ADDRESS" was at some point not re-encrypted with the correct password and should
// therefore also be ignored to not return an error
if key_utf8 == "iota-wallet-key-checksum_value" || key_utf8 == "FIRST_LEDGER_ADDRESS" {
value_utf8
} else if let Ok(value) = serde_json::from_str::<Vec<u8>>(&value_utf8) {
decrypt_record(value, encryption_key)?
Expand Down

0 comments on commit cdbfd07

Please sign in to comment.