Skip to content

Commit

Permalink
Sync basic_outputs of account outputs by default, changelog, bump cli…
Browse files Browse the repository at this point in the history
… version
  • Loading branch information
Thoralf-M committed May 14, 2024
1 parent 31f92e5 commit 86c5dba
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 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.

10 changes: 10 additions & 0 deletions cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
22 changes: 18 additions & 4 deletions cli/src/wallet_cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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?;
Expand Down

0 comments on commit 86c5dba

Please sign in to comment.