From bb6b8fc1b3058119db967903b736369661eb3f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Mon, 29 Apr 2024 12:24:58 +0200 Subject: [PATCH] Remove required_inputs from begin staking as it's handled by the transition --- .../operations/transaction/high_level/staking/begin.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sdk/src/wallet/operations/transaction/high_level/staking/begin.rs b/sdk/src/wallet/operations/transaction/high_level/staking/begin.rs index 96ad085c89..e3d04154e0 100644 --- a/sdk/src/wallet/operations/transaction/high_level/staking/begin.rs +++ b/sdk/src/wallet/operations/transaction/high_level/staking/begin.rs @@ -1,8 +1,6 @@ // Copyright 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -use alloc::collections::BTreeSet; - use serde::{Deserialize, Serialize}; use crate::{ @@ -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() }); }