Skip to content

Commit 014e158

Browse files
committed
fix(types): v28 SubmitPackageTxResultFees might not have effective-includes
1 parent a5f9033 commit 014e158

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

types/src/v28/raw_transactions/into.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ impl SubmitPackageTxResultFees {
6161
.flatten();
6262
let effective_includes = self
6363
.effective_includes
64-
.iter()
64+
.unwrap_or_default()
65+
.into_iter()
6566
.map(|s| s.parse::<Wtxid>().map_err(E::EffectiveIncludes))
6667
.collect::<Result<Vec<_>, _>>()?;
6768

types/src/v28/raw_transactions/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ pub struct SubmitPackageTxResultFees {
8282
/// If [`Self::effective_fee_rate`] is provided, this holds the wtxid's of the transactions
8383
/// whose fees and vsizes are included in effective-feerate.
8484
#[serde(rename = "effective-includes")]
85-
pub effective_includes: Vec<String>,
85+
pub effective_includes: Option<Vec<String>>,
8686
}

0 commit comments

Comments
 (0)