diff --git a/mine-your-first-block/src/main.rs b/mine-your-first-block/src/main.rs index f239eb7..410e0f7 100644 --- a/mine-your-first-block/src/main.rs +++ b/mine-your-first-block/src/main.rs @@ -953,7 +953,7 @@ fn main() { // Generate coinbase tx let coinbase_tx = create_coinbase_tx(total_fees); let serialized_cb_tx = serialize_tx(&coinbase_tx); - let cd_tx_bytes = hex::decode(serialized_cb_tx).unwrap(); + let cd_tx_bytes = hex::decode(serialized_cb_tx.clone()).unwrap(); // coinbase txid let coinbase_txid = double_sha256(cd_tx_bytes);