Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Polish update command files #327

Merged
merged 2 commits into from
Jul 26, 2018
Merged

Conversation

facuspagnuolo
Copy link
Contributor

@facuspagnuolo facuspagnuolo commented Jul 18, 2018

The update command related files were wrongly named. This PR renames these files (command, scripts and test files). I'm also using update instead of upgrade in many outputted messages

@facuspagnuolo facuspagnuolo added the status:in progress Pull Request is a work in progress label Jul 18, 2018
@facuspagnuolo facuspagnuolo force-pushed the polish_update_command_files branch 3 times, most recently from 00df357 to caec2df Compare July 18, 2018 23:26
@facuspagnuolo facuspagnuolo removed the status:in progress Pull Request is a work in progress label Jul 19, 2018
@facuspagnuolo facuspagnuolo force-pushed the polish_update_command_files branch from caec2df to b7d84c8 Compare July 21, 2018 14:15
@facuspagnuolo facuspagnuolo requested a review from spalladino July 21, 2018 14:24
Copy link
Contributor

@spalladino spalladino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good. However, this is something I wanted to discuss: do we want the command to be named update, given that everywhere we are talking about upgradeability with zOS?

We can also merge this PR now and defer that discussion for later, reverting this commit if needed, if we make that change.

import runWithTruffle from '../utils/runWithTruffle'
import { parseInit } from '../utils/input'

const name = 'update'
const signature = `${name} [alias] [address]`
const description = 'upgrade contract to a new logic. Provide the [alias] you added your contract with, or use --all flag to upgrade all. If no [address] is provided, all instances of that contract class will be upgraded'
const description = 'update contract to a new logic. Provide the [alias] you added your contract with, or use --all flag to update all. If no [address] is provided, all instances of that contract class will be upgraded'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all instances of that contract class will be updated

@facuspagnuolo
Copy link
Contributor Author

I really do agree with your opinion, we always talk about upgradeable smart contracts. Let's open an issue to discuss it later

@facuspagnuolo facuspagnuolo force-pushed the polish_update_command_files branch from b7d84c8 to 8be414e Compare July 26, 2018 15:06
@facuspagnuolo facuspagnuolo merged commit edef540 into master Jul 26, 2018
@facuspagnuolo facuspagnuolo deleted the polish_update_command_files branch July 26, 2018 15:31
spalladino pushed a commit to OpenZeppelin/openzeppelin-sdk that referenced this pull request Aug 1, 2018
…te_command_files

Polish update command files
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.

2 participants