Skip to content

Commit

Permalink
Remove required_inputs from begin staking as it's handled by the tran…
Browse files Browse the repository at this point in the history
…sition
  • Loading branch information
Thoralf-M committed Apr 29, 2024
1 parent 5537f00 commit bb6b8fc
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use alloc::collections::BTreeSet;

use serde::{Deserialize, Serialize};

use crate::{
Expand Down Expand Up @@ -74,12 +72,6 @@ where
} else {
options.replace(TransactionOptions {
transitions: Some(Transitions::new().add_account(params.account_id, change)),
required_inputs: BTreeSet::from([self
.get_account_output(params.account_id)
.await
.ok_or(WalletError::AccountNotFound)?
.1
.output_id]),
..Default::default()
});
}
Expand Down

0 comments on commit bb6b8fc

Please sign in to comment.