Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Improve create and upgrade commands wording in prompts #1201

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/src/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async function action(contractFullName: string, options: any): Promise<void> {

const additionalOpts = {
askForMethodParams: rawInitMethod,
askForMethodParamsMessage: 'Do you want to call a function on the instance after creating it?',
askForMethodParamsMessage: 'Call a function to initialize the instance after creating it?',
};
const { methodName, methodArgs } = await promptForMethodParams(contractFullName, options, additionalOpts);

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/modules/ROOT/pages/create-from-solidity.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ $ openzeppelin create Factory
✓ Contract Factory deployed
✓ Contract Instance deployed
All contracts have been deployed
? Do you want to call a function on the instance after creating it? Yes
? Call a function to initialize the instance after creating it? Yes
? Select which function * initialize(_appContractAddress: address)
? _appContractAddress (address): 0xe78A0F7E598Cc8b0Bb87894B0F60dD2a88d6a8Ab
✓ Setting everything up to create contract instances
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/modules/ROOT/pages/first.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ $ openzeppelin create
? Pick a network: development
✓ Added contract Counter
✓ Contract Counter deployed
? Do you want to call a function on the instance after creating it?: No
? Call a function to initialize the instance after creating it?: No
✓ Setting everything up to create contract instances
✓ Instance created at 0xCfEB869F69431e42cdB54A4F4f105C19C080A601
----
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/modules/ROOT/pages/gsn-dapp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ $ openzeppelin create
? Pick a contract to instantiate Counter
? Pick a network development
All contracts are up to date
? Do you want to call a function on the instance after creating it? Yes
? Call a function to initialize the instance after creating it? Yes
? Select which function * initialize()
✓ Instance created at 0x7F73086E24ce5834E62075dEAB2b8F10865FFF9B
----
Expand Down Expand Up @@ -277,7 +277,7 @@ $ openzeppelin create
? Pick a network: rinkeby
✓ Added contract Counter
✓ Contract Counter deployed
? Do you want to call a function on the instance after creating it?: Yes
? Call a function to initialize the instance after creating it?: Yes
? Select which function * initialize()
✓ Setting everything up to create contract instances
✓ Instance created at 0xCfEB869F69431e42cdB54A4F4f105C19C080A601
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/modules/ROOT/pages/linking.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $ openzeppelin create
? Pick a contract to instantiate: @openzeppelin/contracts-ethereum-package/StandaloneERC20
? Pick a network: development
✓ Deploying @openzeppelin/contracts-ethereum-package dependency to network
? Do you want to call a function on the instance after creating it?: Yes
? Call a function to initialize the instance after creating it?: Yes
? Select which function: * initialize(name: string, symbol: string, decimals: uint8, initialSupply: uint256, initialHolder: address, minters: address[], pausers: address[])
? name (string): MyToken
? symbol (string): MYT
Expand Down Expand Up @@ -140,7 +140,7 @@ $ openzeppelin create
? Pick a contract to instantiate: TokenExchange
? Pick a network: development
✓ Contract TokenExchange deployed
? Do you want to call a function on the instance after creating it?: Yes
? Call a function to initialize the instance after creating it?: Yes
? Select which function: initialize(_rate: uint256, _token: address)
? _rate (uint256): 10
? _token (address): 0x2612Af3A521c2df9EAF28422Ca335b04AdF3ac66
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/modules/ROOT/pages/public-deploy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Nothing to compile, all contracts are up to date.
? Pick a network ropsten
✓ Contract Counter deployed
All contracts have been deployed
? Do you want to call a function on the instance after creating it? No
? Call a function to initialize the instance after creating it? No
✓ Setting everything up to create contract instances
✓ Instance created at 0x584Fcb424b17d3505B21c881d57EF9Bf1B18c4A7
0x584Fcb424b17d3505B21c881d57EF9Bf1B18c4A7
Expand Down