Skip to content

Commit 8a87e75

Browse files
authored
fix(json-rpc): change value sat in GetRawTransactionResultVout from u32 to u64 (#72)
1 parent ed45bf8 commit 8a87e75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpc-json/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ pub struct GetRawTransactionResultVin {
540540
#[serde(default, with = "dashcore::amount::serde::as_btc::opt")]
541541
pub value: Option<Amount>,
542542
#[serde(default)]
543-
pub value_sat: Option<u32>,
543+
pub value_sat: Option<u64>,
544544
pub addresses: Option<Vec<String>>,
545545
pub sequence: u32,
546546
}
@@ -579,7 +579,7 @@ pub struct GetRawTransactionResultVout {
579579
#[serde(with = "dashcore::amount::serde::as_btc")]
580580
pub value: Amount,
581581
#[serde(rename = "valueSat")]
582-
pub value_sat: u32,
582+
pub value_sat: u64,
583583
pub n: u32,
584584
#[serde(rename = "scriptPubKey")]
585585
pub script_pub_key: GetRawTransactionResultVoutScriptPubKey,

0 commit comments

Comments
 (0)