Skip to content

Make README.md code examples compile without errors#820

Merged
danielabrozzoni merged 1 commit intobitcoindevkit:masterfrom
petertodd:2022-11-readme-examples
Dec 15, 2022
Merged

Make README.md code examples compile without errors#820
danielabrozzoni merged 1 commit intobitcoindevkit:masterfrom
petertodd:2022-11-readme-examples

Conversation

@petertodd
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread README.md

use base64;
use bitcoin::consensus::serialize;
use bdk::bitcoin::consensus::serialize;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed? The example runs just fine for me without it

@petertodd
Copy link
Copy Markdown
Contributor Author

petertodd commented Dec 13, 2022 via email

Copy link
Copy Markdown
Member

@danielabrozzoni danielabrozzoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because you have bitcoin as a dependency as well as bdk; with my change you can run the example with just bdk in your Cargo.toml

Oh right, I noticed that but I misread that line and thought you were introducing a new import 😅

ACK 99e7037

@notmandatory notmandatory added the documentation Improvements or additions to documentation label Dec 14, 2022
@notmandatory
Copy link
Copy Markdown
Member

Looks like this is ready to go after I get #822 in to fix the nightly docs CI error.

@danielabrozzoni
Copy link
Copy Markdown
Member

I merged #822, try rebasing plz :) (I can't merge until CI passes)

@petertodd petertodd force-pushed the 2022-11-readme-examples branch from 99e7037 to dea211d Compare December 14, 2022 20:26
@petertodd petertodd force-pushed the 2022-11-readme-examples branch from dea211d to d1e5b87 Compare December 14, 2022 20:26
@petertodd
Copy link
Copy Markdown
Contributor Author

petertodd commented Dec 14, 2022 via email

@danielabrozzoni
Copy link
Copy Markdown
Member

ACK d1e5b87

@danielabrozzoni danielabrozzoni merged commit 99930af into bitcoindevkit:master Dec 15, 2022
@notmandatory notmandatory mentioned this pull request Dec 26, 2022
24 tasks
@petertodd petertodd deleted the 2022-11-readme-examples branch February 9, 2023 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants