Skip to content

Commit

Permalink
Allow coin to be withdrawn if in IN_TRANSFER status
Browse files Browse the repository at this point in the history
  • Loading branch information
ssantos21 committed May 21, 2024
1 parent 373ca81 commit 6eb2cfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/rust/src/withdraw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ pub async fn execute(client_config: &ClientConfig, wallet_name: &str, statechain
return Err(anyhow::anyhow!("coin.amount is None"));
}

if coin.status != CoinStatus::CONFIRMED {
return Err(anyhow::anyhow!("Coin status must be CONFIRMED to withdraw it. The current status is {}", coin.status));
if coin.status != CoinStatus::CONFIRMED && coin.status != CoinStatus::IN_TRANSFER {
return Err(anyhow::anyhow!("Coin status must be CONFIRMED or IN_TRANSFER to transfer it. The current status is {}", coin.status));
}

let signed_tx = new_transaction(client_config, coin, &to_address, qt_backup_tx, true, None, &wallet.network, fee_rate).await?;
Expand Down

0 comments on commit 6eb2cfa

Please sign in to comment.