Skip to content

Commit

Permalink
Remove deprecated generate-metadata command (use-ink#265)
Browse files Browse the repository at this point in the history
* Remove deprecated `check` command

* Update CHANGELOG.md

Co-authored-by: Andrew Jones <ascjones@gmail.com>

Co-authored-by: Andrew Jones <ascjones@gmail.com>
  • Loading branch information
Michael Müller and ascjones authored Apr 21, 2021
1 parent 307de23 commit 2d73e26
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed
- Remove support for `--binaryen-as-dependency` - [#251](https://github.com/paritytech/cargo-contract/pull/251)
- Remove support for the deprecated `cargo contract generate-metadata` command - [#265](https://github.com/paritytech/cargo-contract/pull/265)

## [0.11.1] - 2021-04-06

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SUBCOMMANDS:
new Setup and create a new smart contract project
build Compiles the contract, generates metadata, bundles
both together in a `<name>.contract` file
generate-metadata Command has been deprecated, use `cargo contract build` instead
check Check that the code builds as Wasm; does not output any
`<name>.contract` artifact to the `target/` directory
test Test the smart contract off-chain
Expand Down
6 changes: 0 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,6 @@ enum Command {
/// Compiles the contract, generates metadata, bundles both together in a `<name>.contract` file
#[structopt(name = "build")]
Build(BuildCommand),
/// Command has been deprecated, use `cargo contract build` instead
#[structopt(name = "generate-metadata")]
GenerateMetadata {},
/// Check that the code builds as Wasm; does not output any `<name>.contract` artifact to the `target/` directory
#[structopt(name = "check")]
Check(CheckCommand),
Expand Down Expand Up @@ -475,9 +472,6 @@ fn exec(cmd: Command) -> Result<Option<String>> {
Ok(None)
}
}
Command::GenerateMetadata {} => Err(anyhow::anyhow!(
"Command deprecated, use `cargo contract build` instead"
)),
Command::Test {} => Err(anyhow::anyhow!("Command unimplemented")),
#[cfg(feature = "extrinsics")]
Command::Deploy {
Expand Down

0 comments on commit 2d73e26

Please sign in to comment.