Skip to content

Commit bd8af7d

Browse files
committed
Make instantiate2_address_impl public
1 parent c6978a8 commit bd8af7d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ and this project adheres to
2424
- cosmwasm-std: Document safety invariants of the internal memory repr ([#2344])
2525
- cosmwasm-std: Enforce non-null pointers using `ptr::NonNull` in the internal
2626
memory repr ([#2344])
27-
- cosmwasm-std: Let private `instantiate2_address_impl` take a new `len`
28-
argument to allow truncating address data as part of the generation process.
27+
- cosmwasm-std: Make `instantiate2_address_impl` public and let it take a new
28+
`len` argument to allow truncating address data as part of the generation
29+
process. ([#2155])
2930

3031
## Fixed
3132

3233
- cosmwasm-schema: The schema export now doesn't overwrite existing
3334
`additionalProperties` values anymore ([#2310])
3435

36+
[#2155]: https://github.com/CosmWasm/cosmwasm/issues/2155
3537
[#2268]: https://github.com/CosmWasm/cosmwasm/issues/2268
3638
[#2269]: https://github.com/CosmWasm/cosmwasm/issues/2269
3739
[#2310]: https://github.com/CosmWasm/cosmwasm/pull/2310

packages/std/src/addresses.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ pub fn instantiate2_address(
330330
/// See also <https://github.com/CosmWasm/cosmwasm/issues/2155>.
331331
#[doc(hidden)]
332332
#[inline] // Only call this through a wrapper like instantiate2_address or a custom instantiate2_address_evm_compatible
333-
fn instantiate2_address_impl(
333+
pub fn instantiate2_address_impl(
334334
checksum: &[u8],
335335
creator: &CanonicalAddr,
336336
salt: &[u8],

packages/std/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ pub(crate) mod prelude;
5252
/// contract devs to use it directly.
5353
pub mod storage_keys;
5454

55-
pub use crate::addresses::{instantiate2_address, Addr, CanonicalAddr, Instantiate2AddressError};
55+
pub use crate::addresses::{
56+
instantiate2_address, instantiate2_address_impl, Addr, CanonicalAddr, Instantiate2AddressError,
57+
};
5658
pub use crate::binary::Binary;
5759
pub use crate::checksum::{Checksum, ChecksumError};
5860
pub use crate::coin::{coin, coins, has_coins, Coin};

0 commit comments

Comments
 (0)