Skip to content

Commit

Permalink
Update packages/derive/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Warta <[email protected]>
  • Loading branch information
aumetra and webmaster128 committed Apr 24, 2024
1 parent d4d1108 commit 41632e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ fn expand_attributes(func: &mut ItemFn) -> syn::Result<TokenStream> {

#[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;
};
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 41632e0

Please sign in to comment.