Skip to content
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

fix(cli): cannot build on Cannon network with --dry-run #1529

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

saeta-eth
Copy link
Contributor

@saeta-eth saeta-eth commented Nov 7, 2024

Running cannon build with --dry-run without specifying the --chain-id should throw an error.

Bug:

cannon build mintable-token.cannonfile.toml --dry-run
Building the foundry project...
forge build succeeded

Anvil instance running on: http://127.0.0.1:61073

shutting down existing anvil subprocess 24191
/usr/local/lib/node_modules/@usecannon/cli/dist/src/rpc.js:69
        throw new Error('Cannot set both an anvil forkUrl and a proxy provider connection');
              ^

Error: Cannot set both an anvil forkUrl and a proxy provider connection
    at runRpc (/usr/local/lib/node_modules/@usecannon/cli/dist/src/rpc.js:69:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ChildProcess.<anonymous> (/usr/local/lib/node_modules/@usecannon/cli/dist/src/rpc.js:81:25)

Node.js v20.16.0

@saeta-eth saeta-eth added the bug Something isn't working label Nov 7, 2024
@saeta-eth saeta-eth self-assigned this Nov 7, 2024
Copy link

changeset-bot bot commented Nov 7, 2024

⚠️ No Changeset found

Latest commit: 290b461

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mjlescano mjlescano merged commit 73452e1 into dev Nov 7, 2024
10 of 11 checks passed
@mjlescano mjlescano deleted the fix/dry-run-cannon-network branch November 7, 2024 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants