Skip to content

Commit

Permalink
Make instantiate2_address_impl public
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Feb 5, 2025
1 parent c6978a8 commit bd8af7d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ and this project adheres to
- cosmwasm-std: Document safety invariants of the internal memory repr ([#2344])
- cosmwasm-std: Enforce non-null pointers using `ptr::NonNull` in the internal
memory repr ([#2344])
- cosmwasm-std: Let private `instantiate2_address_impl` take a new `len`
argument to allow truncating address data as part of the generation process.
- cosmwasm-std: Make `instantiate2_address_impl` public and let it take a new
`len` argument to allow truncating address data as part of the generation
process. ([#2155])

## Fixed

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

[#2155]: https://github.com/CosmWasm/cosmwasm/issues/2155
[#2268]: https://github.com/CosmWasm/cosmwasm/issues/2268
[#2269]: https://github.com/CosmWasm/cosmwasm/issues/2269
[#2310]: https://github.com/CosmWasm/cosmwasm/pull/2310
Expand Down
2 changes: 1 addition & 1 deletion packages/std/src/addresses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ pub fn instantiate2_address(
/// See also <https://github.com/CosmWasm/cosmwasm/issues/2155>.
#[doc(hidden)]
#[inline] // Only call this through a wrapper like instantiate2_address or a custom instantiate2_address_evm_compatible
fn instantiate2_address_impl(
pub fn instantiate2_address_impl(
checksum: &[u8],
creator: &CanonicalAddr,
salt: &[u8],
Expand Down
4 changes: 3 additions & 1 deletion packages/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ pub(crate) mod prelude;
/// contract devs to use it directly.
pub mod storage_keys;

pub use crate::addresses::{instantiate2_address, Addr, CanonicalAddr, Instantiate2AddressError};
pub use crate::addresses::{
instantiate2_address, instantiate2_address_impl, Addr, CanonicalAddr, Instantiate2AddressError,
};
pub use crate::binary::Binary;
pub use crate::checksum::{Checksum, ChecksumError};
pub use crate::coin::{coin, coins, has_coins, Coin};
Expand Down

0 comments on commit bd8af7d

Please sign in to comment.