From fa3d8450dca37fa0a9e93d4bf34f29bd3914da3d Mon Sep 17 00:00:00 2001 From: codingp110 Date: Wed, 18 Dec 2024 22:01:50 +0530 Subject: [PATCH] fix: update link to source of Amount struct The earlier link to the source code of Amount struct in bitcoin crate is now broken so replaced it by a link to source code of Amount struct in bitcoin-units crate (version 0.2.0). --- 15_reading_outputs_and_tuple_structs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/15_reading_outputs_and_tuple_structs.md b/15_reading_outputs_and_tuple_structs.md index f530045..f98fc80 100644 --- a/15_reading_outputs_and_tuple_structs.md +++ b/15_reading_outputs_and_tuple_structs.md @@ -146,7 +146,7 @@ The amounts are missing the decimal values because we're doing math on unsigned However, let's use this as an opportunity to look at some open source code and see how a popular library, such as [Rust-Bitcoin](https://github.com/rust-bitcoin/rust-bitcoin) deals with the amount field. -From the source code, it appears they create an `Amount` tuple struct to represent the Satoshi / Bitcoin value. https://docs.rs/bitcoin/latest/src/bitcoin/amount.rs.html#498 +From the source code, it appears they create an `Amount` tuple struct to represent the Satoshi / Bitcoin value. https://docs.rs/bitcoin-units/latest/src/bitcoin_units/amount.rs.html#865 ```rust pub struct Amount(u64);