diff --git a/Cargo.lock b/Cargo.lock index 8d63f9b..bcd0705 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -498,7 +498,7 @@ dependencies = [ [[package]] name = "cli-wallet" -version = "1.0.0-alpha.3" +version = "1.0.0-alpha.4" dependencies = [ "clap", "dialoguer", @@ -1361,7 +1361,7 @@ dependencies = [ [[package]] name = "iota-wallet" version = "0.2.0" -source = "git+https://github.com/iotaledger/wallet.rs?rev=7bf05046536fcb64e59a3290a76a4cb36f43db37#7bf05046536fcb64e59a3290a76a4cb36f43db37" +source = "git+https://github.com/iotaledger/wallet.rs?rev=1e9ae9e05b1a992202e627fa91bc748466e6b53e#1e9ae9e05b1a992202e627fa91bc748466e6b53e" dependencies = [ "async-trait", "backtrace", diff --git a/Cargo.toml b/Cargo.toml index 990ea3d..89d8448 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cli-wallet" -version = "1.0.0-alpha.3" +version = "1.0.0-alpha.4" authors = [ "IOTA Stiftung" ] edition = "2021" homepage = "https://iota.org" @@ -16,7 +16,7 @@ clap = { version = "3.2.5", default-features = false, features = [ "derive", "st dialoguer = { version = "0.10.1", default-features = false, features = [ "password" ] } fern-logger = { version = "0.5.0", default-features = false } iota-crypto = { version = "0.12.1", default-features = false, features = [ "std", "random", "sha", "pbkdf", "hmac", "bip39", "bip39-en", "chacha", "blake2b", "slip10" ] } -iota-wallet = { git = "https://github.com/iotaledger/wallet.rs", rev = "7bf05046536fcb64e59a3290a76a4cb36f43db37", default-features = false, features = [ "storage", "stronghold" ] } +iota-wallet = { git = "https://github.com/iotaledger/wallet.rs", rev = "1e9ae9e05b1a992202e627fa91bc748466e6b53e", default-features = false, features = [ "storage", "stronghold" ] } log = { version = "0.4.17", default-features = false } prefix-hex = { version = "0.4.0", default-features = false, features = [ "std" ] } thiserror = { version = "1.0.31", default-features = false } diff --git a/src/command/account.rs b/src/command/account.rs index 1fa3070..72177f9 100644 --- a/src/command/account.rs +++ b/src/command/account.rs @@ -7,7 +7,7 @@ use clap::{Parser, Subcommand}; use iota_wallet::{ account::{ types::{AccountAddress, Transaction}, - AccountHandle, OutputsToCollect, + AccountHandle, OutputsToClaim, }, iota_client::{ bee_block::output::{AliasId, FoundryId, NftId, TokenId}, @@ -150,7 +150,7 @@ pub async fn balance_command(account_handle: &AccountHandle) -> Result<(), Error pub async fn claim_command(account_handle: &AccountHandle) -> Result<(), Error> { log::info!("Claiming outputs."); - let claiming_txs = account_handle.try_collect_outputs(OutputsToCollect::All).await?; + let claiming_txs = account_handle.try_claim_outputs(OutputsToClaim::All).await?; for claim_tx in claiming_txs { log::info!("Claim transaction sent: {claim_tx:?}");