Skip to content

Commit

Permalink
Fix Amount type
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed May 8, 2019
1 parent df3b989 commit 49a2ca2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion json/src/lib.rs
Expand Up @@ -352,7 +352,8 @@ pub struct ListReceivedByAddressResult {
#[serde(rename = "involvesWatchonly")]
pub involved_watch_only: bool,
pub address: Address,
pub amount: u64,
#[serde(deserialize_with = "deserialize_amount")]
pub amount: Amount,
pub confirmations: u32,
pub label: String,
pub txids: Vec<sha256d::Hash>,
Expand Down

0 comments on commit 49a2ca2

Please sign in to comment.