Skip to content

Commit

Permalink
Merge pull request #222 from matthew1001/allow-contract-constructor-p…
Browse files Browse the repository at this point in the history
…arams

Allow contract constructor params
  • Loading branch information
nguyer committed Nov 16, 2022
2 parents 243ce77 + d490083 commit 52d2f14
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/deploy_ethereum.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ import (

// deployEthereumCmd represents the "deploy ethereum" command
var deployEthereumCmd = &cobra.Command{
Use: "ethereum <stack_name> <contract_json_file>",
Use: "ethereum <stack_name> <contract_json_file> [constructor_param1 [constructor_param2 ...]]",
Short: "Deploy a compiled solidity contract",
Long: `Deploy a solidity contract compiled with solc to the blockchain used by a FireFly stack
Long: `Deploy a solidity contract compiled with solc to the blockchain used by a FireFly stack. If the
contract has a constructor that takes arguments specify them as arguments to the command after the filename.
To compile a .sol file to a .json file run:
solc --combined-json abi,bin contract.sol > contract.json
`,
Args: cobra.ExactArgs(2),
Args: cobra.MinimumNArgs(2),
PreRunE: func(cmd *cobra.Command, args []string) error {
return docker.CheckDockerConfig()
},
Expand Down

0 comments on commit 52d2f14

Please sign in to comment.