diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f4cdd6d6..e7f3e8f39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Updated the toolchain version used by `ink_linting` - [#1616](https://github.com/paritytech/cargo-contract/pull/1616) - Bump the version of `subxt` and `subxt-signer` - [#1722](https://github.com/use-ink/cargo-contract/pull/1722) +- Fix a bug in `call_with_config` macro. ### Removed - Remove support for `V11` metadata [#1722](https://github.com/use-ink/cargo-contract/pull/1722) diff --git a/crates/cargo-contract/src/cmd/config.rs b/crates/cargo-contract/src/cmd/config.rs index 670bfa382..775c8564c 100644 --- a/crates/cargo-contract/src/cmd/config.rs +++ b/crates/cargo-contract/src/cmd/config.rs @@ -236,7 +236,7 @@ macro_rules! call_with_config_internal { #[macro_export] macro_rules! call_with_config { ($obj:tt, $function:ident, $config_name:expr) => {{ - let config_name = format!("crate::cmd::config::{}", $config_name); + let config_name = format!("$crate :: cmd :: config :: {}", $config_name); $crate::call_with_config_internal!( $obj, $function,