diff --git a/CHANGELOG.md b/CHANGELOG.md index ca1ce2f450adc0354570cc7ebbd50dc2d5f622d3..e9e0d7330e151047f018e3dd173930fb2e649ec7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 5869c4f65edc19817ae33c8c6631b4f49c576968..72d96b8613d02bc41d9b461a7c1630f276d849bf 100644 --- a/README.md +++ b/README.md @@ -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 `.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 `.contract` artifact to the `target/` directory test Test the smart contract off-chain diff --git a/src/main.rs b/src/main.rs index 321a4ebceca232b07015a6fbce79c67fcd3d376b..5fa76b9a4afca18e2cbe0ee681099a20322b8654 100644 --- a/src/main.rs +++ b/src/main.rs @@ -378,9 +378,6 @@ enum Command { /// Compiles the contract, generates metadata, bundles both together in a `.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 `.contract` artifact to the `target/` directory #[structopt(name = "check")] Check(CheckCommand), @@ -475,9 +472,6 @@ fn exec(cmd: Command) -> Result> { 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 {