fix: respect cli flags - #1805
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
janniks
enabled auto-merge (rebase)
August 6, 2025 16:43
There was a problem hiding this comment.
Pull Request Overview
This PR fixes CLI commands to properly respect network flag configurations by ensuring network parameters are passed to the underlying API calls and transaction operations. The main issue was that some commands were not using the detected network parameter, which can be configured by various flags.
- Updated
faucetCallfunction to use the configured network instead of hardcoded testnet URL - Added network parameter to
fetchFeeEstimateTransactionandbroadcastTransactioncalls in contract deployment and function call commands - Added special handling for the
faucetcommand to default to testnet for backwards compatibility when no network flags are provided
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/cli/src/cli.ts | Updates CLI commands to use network configuration from flags instead of hardcoded URLs |
| packages/cli/tests/cli.test.ts | Adds comprehensive test coverage for network flag handling across different commands |
rafaelcr
approved these changes
Aug 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.