From 41632e0745100ee9e39f2fd317d55e7b97e924c6 Mon Sep 17 00:00:00 2001 From: Aumetra Weisman Date: Wed, 24 Apr 2024 16:31:49 +0200 Subject: [PATCH] Update packages/derive/src/lib.rs Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com> --- packages/derive/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/derive/src/lib.rs b/packages/derive/src/lib.rs index 9b28a32d27..48f2ceb2f9 100644 --- a/packages/derive/src/lib.rs +++ b/packages/derive/src/lib.rs @@ -143,10 +143,10 @@ fn expand_attributes(func: &mut ItemFn) -> syn::Result { #[allow(unused)] #[doc(hidden)] - #[link_section = "cw_contract_state_version"] + #[link_section = "cw_state_version"] /// This is an internal constant exported as a custom section denoting the contract state version. /// The format and even the existence of this value is an implementation detail, DO NOT RELY ON THIS! - static __CW_CONTRACT_STATE_VERSION: &str = #version; + static __CW_STATE_VERSION: &str = #version; }; } @@ -203,10 +203,10 @@ mod test { let expected = quote! { #[allow(unused)] #[doc(hidden)] - #[link_section = "cw_contract_state_version"] + #[link_section = "cw_state_version"] /// This is an internal constant exported as a custom section denoting the contract state version. /// The format and even the existence of this value is an implementation detail, DO NOT RELY ON THIS! - static __CW_CONTRACT_STATE_VERSION: &str = "2"; + static __CW_STATE_VERSION: &str = "2"; fn migrate(deps: DepsMut, env: Env, msg: MigrateMsg) -> Response { // Logic here