Skip to content

Conversation

@Daanvdplas
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the automatic deployment behavior for the ink! node when deploying smart contracts. The main change introduces automatic node startup when the --skip-confirm flag is used with the default local endpoint.

  • Adds automatic local node startup when skip_confirm is true and no custom URL is provided
  • Fixes a syntax error in the metadata formatting code (missing semicolon)
  • Adds comprehensive test coverage for the new auto-start behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/pop-cli/src/commands/up/contract.rs Implements automatic local node deployment logic with helper function, updates documentation, and adds test coverage
crates/pop-chains/src/call/metadata/mod.rs Fixes missing semicolon after return match statement

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@moliholy moliholy left a comment

Choose a reason for hiding this comment

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

LGTM!

@moliholy moliholy merged commit a9932dc into daan/fix-pop_up_contract_signer Nov 12, 2025
20 of 22 checks passed
@moliholy moliholy deleted the daan/refactor-pop_up_ink_node_automatic_deployment branch November 12, 2025 12:00
moliholy added a commit that referenced this pull request Nov 14, 2025
* fix(pop up contract): signer prompted if not provided

* fix: contracts integration tests

* refactor: pop up ink node automatic deployment (#729)

* fix: consistent interaction with contract after deployment (#733)

* refactor: pop up ink node automatic deployment

* fix: consistent interaction with contract after deployment for suri or wallet

* refactor: make should_auto_start_local_node attached to the command

* feat: do not ask for suri if --skip-confirm

* fix: contract tests

* feat: never prompt with --skip-confirm

* test: contract flow

* fix: contract integration tests

* feat: allow using --skip-confirm and --use-wallet

* fix: increase timeout for integration test

* refactor: make pop function asynchronous

* fix: integration tests (#746)

---------

Co-authored-by: José Molina <jose@r0gue.io>
Co-authored-by: Alex Bean <alexfraga10@gmail.com>
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