Skip to content

Commit

Permalink
clippy and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bellamy authored and willemneal committed Sep 11, 2023
1 parent ab0763b commit 628073d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/soroban-cli/src/rpc/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,12 @@ pub fn build_restore_txn(
parent: &Transaction,
restore: &SimulateTransactionResponseRestorePreamble,
) -> Result<Transaction, Error> {
let transaction_data = SorobanTransactionData::from_xdr_base64(restore.transaction_data)?;
let transaction_data =
SorobanTransactionData::from_xdr_base64(restore.transaction_data.clone())?;
Ok(Transaction {
source_account: parent.source_account.clone(),
fee: parent.fee + restore.min_resource_fee,
seq_num: parent.seq_num,
seq_num: parent.seq_num.clone(),
cond: Preconditions::None,
memo: Memo::None,
operations: vec![Operation {
Expand Down

0 comments on commit 628073d

Please sign in to comment.