Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/cyberpunk/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn execute_message_loop(env: Env) -> Result<Response, ContractError> {
fn execute_allocate_large_memory(pages: u32) -> Result<Response, ContractError> {
// We create memory pages explicitly since Rust's default allocator seems to be clever enough
// to not grow memory for unused capacity like `Vec::<u8>::with_capacity(100 * 1024 * 1024)`.
// Even with std::alloc::alloc the memory did now grow beyond 1.5 MiB.
// Even with std::alloc::alloc the memory did not grow beyond 1.5 MiB.

#[cfg(target_arch = "wasm32")]
{
Expand Down
2 changes: 1 addition & 1 deletion contracts/hackatom/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn do_message_loop(env: Env) -> Result<Response, HackError> {
fn do_allocate_large_memory(pages: u32) -> Result<Response, HackError> {
// We create memory pages explicitly since Rust's default allocator seems to be clever enough
// to not grow memory for unused capacity like `Vec::<u8>::with_capacity(100 * 1024 * 1024)`.
// Even with std::alloc::alloc the memory did now grow beyond 1.5 MiB.
// Even with std::alloc::alloc the memory did not grow beyond 1.5 MiB.

#[cfg(target_arch = "wasm32")]
{
Expand Down
2 changes: 1 addition & 1 deletion contracts/hackatom/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct MigrateMsg {
}

/// SudoMsg is only exposed for internal Cosmos SDK modules to call.
/// This is showing how we can expose "admin" functionality than can not be called by
/// This is showing how we can expose "admin" functionality that can not be called by
/// external users or contracts, but only trusted (native/Go) code in the blockchain
#[cw_serde]
pub enum SudoMsg {
Expand Down
4 changes: 2 additions & 2 deletions contracts/ibc-reflect-send/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn ibc_channel_connect(

let channel_id = &channel.endpoint.channel_id;

// create an account holder the channel exists (not found if not registered)
// create an account holder when the channel exists (not found if not registered)
let data = AccountData::default();
save_account(deps.storage, channel_id, &data)?;

Expand Down Expand Up @@ -110,7 +110,7 @@ pub fn ibc_packet_ack(
env: Env,
msg: IbcPacketAckMsg,
) -> StdResult<IbcBasicResponse> {
// which local channel was this packet send from
// which local channel was this packet sent from
let caller = msg.original_packet.src.channel_id;
// we need to parse the ack based on our request
let packet: PacketMsg = from_json(msg.original_packet.data)?;
Expand Down