File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ pub struct GetReceivedByAddress(pub Amount);
277277pub struct GetTransaction {
278278 /// The transaction amount.
279279 #[ serde( default , with = "bitcoin::amount::serde::as_btc" ) ]
280- pub amount : Amount ,
280+ pub amount : SignedAmount ,
281281 /// The amount of the fee.
282282 ///
283283 /// This is negative and only available for the 'send' category of transactions.
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ impl GetTransaction {
325325 pub fn into_model ( self ) -> Result < model:: GetTransaction , GetTransactionError > {
326326 use GetTransactionError as E ;
327327
328- let amount = Amount :: from_btc ( self . amount ) . map_err ( E :: Amount ) ?;
328+ let amount = SignedAmount :: from_btc ( self . amount ) . map_err ( E :: Amount ) ?;
329329 let fee = self . fee . map ( |fee| SignedAmount :: from_btc ( fee) . map_err ( E :: Fee ) ) . transpose ( ) ?;
330330
331331 let block_hash =
You can’t perform that action at this time.
0 commit comments