Skip to content

Commit e1bd3c2

Browse files
committed
Rename state version in docs
1 parent 8b60fc2 commit e1bd3c2

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ and this project adheres to
3535
([#2120])
3636
- cosmwasm-derive: Add `state_version` attribute for `migrate` entrypoints
3737
([#2124])
38-
- cosmwasm-vm: Read the state version from Wasm modules and return them as part
39-
of `AnalyzeReport` ([#2129])
38+
- cosmwasm-vm: Read the migrate version from Wasm modules and return them as
39+
part of `AnalyzeReport` ([#2129], [#2166])
4040
- cosmwasm-vm: Add `bls12_381_aggregate_g1`, `bls12_381_aggregate_g2`,
4141
`bls12_381_pairing_equality`, `bls12_381_hash_to_g1`, and
4242
`bls12_381_hash_to_g2` to enable BLS12-381 curve operations, such as verifying
@@ -60,6 +60,7 @@ and this project adheres to
6060
[#2120]: https://github.com/CosmWasm/cosmwasm/pull/2120
6161
[#2124]: https://github.com/CosmWasm/cosmwasm/pull/2124
6262
[#2129]: https://github.com/CosmWasm/cosmwasm/pull/2129
63+
[#2166]: https://github.com/CosmWasm/cosmwasm/pull/2166
6364

6465
### Changed
6566

packages/derive/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ fn expand_attributes(func: &mut ItemFn) -> syn::Result<TokenStream> {
153153
#[doc(hidden)]
154154
#[cfg(target_arch = "wasm32")]
155155
#[link_section = "cw_migrate_version"]
156-
/// This is an internal constant exported as a custom section denoting the contract state version.
156+
/// This is an internal constant exported as a custom section denoting the contract migrate version.
157157
/// The format and even the existence of this value is an implementation detail, DO NOT RELY ON THIS!
158158
static __CW_MIGRATE_VERSION: &str = #version;
159159
};
@@ -265,7 +265,7 @@ mod test {
265265
#[doc(hidden)]
266266
#[cfg(target_arch = "wasm32")]
267267
#[link_section = "cw_migrate_version"]
268-
/// This is an internal constant exported as a custom section denoting the contract state version.
268+
/// This is an internal constant exported as a custom section denoting the contract migrate version.
269269
/// The format and even the existence of this value is an implementation detail, DO NOT RELY ON THIS!
270270
static __CW_MIGRATE_VERSION: &str = "2";
271271

packages/vm/src/cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub struct AnalysisReport {
133133
pub entrypoints: BTreeSet<Entrypoint>,
134134
/// The set of capabilities the contract requires.
135135
pub required_capabilities: BTreeSet<String>,
136-
/// The contract state version exported set by the contract developer
136+
/// The contract migrate version exported set by the contract developer
137137
pub contract_migrate_version: Option<u64>,
138138
}
139139

packages/vm/src/parsed_wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub struct ParsedWasm<'a> {
6666
pub total_func_params: usize,
6767
/// Collections of functions that are potentially pending validation
6868
pub func_validator: FunctionValidator<'a>,
69-
/// Contract state version as defined in a custom section
69+
/// Contract migrate version as defined in a custom section
7070
pub contract_migrate_version: Option<u64>,
7171
}
7272

0 commit comments

Comments
 (0)