truffle icon indicating copy to clipboard operation
truffle copied to clipboard

Add --url option to the `truffle exec` command

Open sukanyaparashar opened this issue 2 years ago • 0 comments

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

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

sukanyaparashar avatar Jan 24 '23 00:01 sukanyaparashar