diff --git a/Cargo.lock b/Cargo.lock index 17e7574623..5baf1fdc04 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -503,7 +503,7 @@ checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" [[package]] name = "cli-wallet" -version = "2.0.0-beta.1" +version = "2.0.0-beta.2" dependencies = [ "chrono", "clap", diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index 1e0ab558c4..27757e281a 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -19,6 +19,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security --> +## 2.0.0-beta.2 - 2024-05-14 + +### Changed + +- Set `SyncOptions::account::basic_outputs` to true; + +### Fixed + +- Hash public key in `add-block-issuer-key` and `remove-block-issuer-key`; + ## 2.0.0-beta.1 - 2024-05-08 ### Fixed diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 45ea1fa631..05a453fbb4 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cli-wallet" -version = "2.0.0-beta.1" +version = "2.0.0-beta.2" authors = ["IOTA Stiftung"] edition = "2021" homepage = "https://iota.org" diff --git a/cli/src/wallet_cli/mod.rs b/cli/src/wallet_cli/mod.rs index 5e6686b5f3..65a424d8e5 100644 --- a/cli/src/wallet_cli/mod.rs +++ b/cli/src/wallet_cli/mod.rs @@ -26,9 +26,9 @@ use iota_sdk::{ }, utils::ConvertTo, wallet::{ - types::OutputData, BeginStakingParams, ConsolidationParams, CreateDelegationParams, CreateNativeTokenParams, - MintNftParams, ModifyAccountBlockIssuerKey, OutputsToClaim, ReturnStrategy, SendManaParams, - SendNativeTokenParams, SendNftParams, SendParams, SyncOptions, Wallet, WalletError, + types::OutputData, AccountSyncOptions, BeginStakingParams, ConsolidationParams, CreateDelegationParams, + CreateNativeTokenParams, MintNftParams, ModifyAccountBlockIssuerKey, OutputsToClaim, ReturnStrategy, + SendManaParams, SendNativeTokenParams, SendNftParams, SendParams, SyncOptions, Wallet, WalletError, }, U256, }; @@ -752,7 +752,17 @@ pub async fn create_native_token_command( .wait_for_transaction_acceptance(&transaction.transaction_id, None, None) .await?; // Sync wallet after the transaction got confirmed, so the account output is available - wallet.sync(None).await?; + wallet + .sync(Some(SyncOptions { + sync_native_token_foundries: true, + sync_implicit_accounts: true, + account: AccountSyncOptions { + basic_outputs: true, + ..Default::default() + }, + ..Default::default() + })) + .await?; } let params = CreateNativeTokenParams { @@ -1200,6 +1210,10 @@ pub async fn sync_command(wallet: &Wallet) -> Result<(), Error> { .sync(Some(SyncOptions { sync_native_token_foundries: true, sync_implicit_accounts: true, + account: AccountSyncOptions { + basic_outputs: true, + ..Default::default() + }, ..Default::default() })) .await?;