Skip to content

doc(basic_bitcoin): add icp ninja link #1234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 4, 2025

Conversation

mducroux
Copy link
Contributor

@mducroux mducroux commented Jul 3, 2025

Changes to the basic_bitcoin example README.md:

  • Add a link to ICP ninja
  • Remove reference to pre-deployed canister
  • Fix invalid candid args in get_block_headers command
  • Fix invalid regtest address

@mducroux mducroux requested a review from kristoferlund July 3, 2025 08:04
@mducroux mducroux requested a review from a team as a code owner July 3, 2025 08:04
Copy link
Contributor

@lpahlavi lpahlavi left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @mducroux! I could test it out and all seems to work!


This example can be deployed directly to the Internet Computer using ICP Ninja, where it will connect to Bitcoin **testnet4**.

[![](https://icp.ninja/assets/open.svg)](https://icp.ninja/editor?g=https://github.com/dfinity/examples/tree/master/rust/basic_bitcoin)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This points to the current master which does not include the latest change on dfx.json (namely adding init_arg). For the purpose of this review, dfx.json on ICP ninja needs to be modified to include init_arg.

Copy link
Contributor

@kristoferlund kristoferlund left a comment

Choose a reason for hiding this comment

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

In order to support Ninja deployment, you need to have an init_arg. But README describes the process for local deployment where you instead specify network on deploy. This can become a little confusing.

I would suggest focusing the main branch on local deployment and then just creating a separate branch with the one line init_arg addition Ninja requires.

@mducroux mducroux merged commit 96c8d67 into master Jul 4, 2025
13 of 17 checks passed
@mducroux mducroux deleted the mducroux/basic-bitcoin-icp-ninja branch July 4, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants