File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ impl Parse for Options {
98
98
///
99
99
/// The VM will use this as a hint whether it needs to run the migrate function of your contract or not.
100
100
///
101
- /// ```no_run
101
+ /// ```
102
102
/// # use cosmwasm_std::{
103
103
/// # DepsMut, entry_point, Env,
104
104
/// # Response, StdResult,
@@ -151,6 +151,7 @@ fn expand_attributes(func: &mut ItemFn) -> syn::Result<TokenStream> {
151
151
152
152
#[ allow( unused) ]
153
153
#[ doc( hidden) ]
154
+ #[ cfg( target_arch = "wasm32" ) ]
154
155
#[ link_section = "cw_state_version" ]
155
156
/// This is an internal constant exported as a custom section denoting the contract state version.
156
157
/// The format and even the existence of this value is an implementation detail, DO NOT RELY ON THIS!
@@ -262,6 +263,7 @@ mod test {
262
263
let expected = quote ! {
263
264
#[ allow( unused) ]
264
265
#[ doc( hidden) ]
266
+ #[ cfg( target_arch = "wasm32" ) ]
265
267
#[ link_section = "cw_state_version" ]
266
268
/// This is an internal constant exported as a custom section denoting the contract state version.
267
269
/// The format and even the existence of this value is an implementation detail, DO NOT RELY ON THIS!
You can’t perform that action at this time.
0 commit comments