Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Add --url option to the truffle exec command #5852

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

sukanyaparashar
Copy link
Contributor

PR description

This PR adds --url option to the truffle exec command that connects to a specified url. See #5701.

Testing instructions

To test this option, you can clone this Test Project with a simple storage contract and a test script.

  1. Run a ganache instance in a terminal.
  2. Run truffle compile inside a truffle project in a separate terminal.
  3. Run truffle exec test-script.js --url http://127.0.0.1:8545. It should execute the script and deploys a new instance of the contract and returns the value of the state variable that is set with a constructor.

Screenshot 2023-01-23 at 5 11 12 PM

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if documentation updates are required.

@sukanyaparashar sukanyaparashar changed the title Add url to exec Add --url option to the truffle exec command Jan 24, 2023
@eggplantzzz eggplantzzz marked this pull request as draft February 28, 2023 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants