Skip to content

Commit

Permalink
Merge pull request #2086 from kindhuge/main
Browse files Browse the repository at this point in the history
chore: fix some comments
  • Loading branch information
chipshort authored Apr 4, 2024
2 parents 6f46db9 + 16b8b95 commit f6e9c61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/std/src/testing/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ fn validate_length(bytes: &[u8]) -> StdResult<()> {
}
}

/// Returns a default enviroment with height, time, chain_id, and contract address
/// Returns a default environment with height, time, chain_id, and contract address
/// You can submit as is to most contracts, or modify height/time if you want to
/// test for expiration.
///
Expand Down
8 changes: 4 additions & 4 deletions packages/vm/src/compatibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ mod tests {
"Wasm contract has unknown interface_version_* marker export (see https://github.com/CosmWasm/cosmwasm/blob/main/packages/vm/README.md)"
),
Err(e) => panic!("Unexpected error {e:?}"),
Ok(_) => panic!("This must not succeeed"),
Ok(_) => panic!("This must not succeed"),
};

match check_wasm(CONTRACT_0_14, &default_capabilities()) {
Expand All @@ -312,7 +312,7 @@ mod tests {
"Wasm contract has unknown interface_version_* marker export (see https://github.com/CosmWasm/cosmwasm/blob/main/packages/vm/README.md)"
),
Err(e) => panic!("Unexpected error {e:?}"),
Ok(_) => panic!("This must not succeeed"),
Ok(_) => panic!("This must not succeed"),
};

match check_wasm(CONTRACT_0_12, &default_capabilities()) {
Expand All @@ -322,7 +322,7 @@ mod tests {
))
}
Err(e) => panic!("Unexpected error {e:?}"),
Ok(_) => panic!("This must not succeeed"),
Ok(_) => panic!("This must not succeed"),
};

match check_wasm(CONTRACT_0_7, &default_capabilities()) {
Expand All @@ -332,7 +332,7 @@ mod tests {
))
}
Err(e) => panic!("Unexpected error {e:?}"),
Ok(_) => panic!("This must not succeeed"),
Ok(_) => panic!("This must not succeed"),
};
}

Expand Down
2 changes: 1 addition & 1 deletion packages/vm/src/testing/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ fn validate_length(bytes: &[u8]) -> Result<(), BackendError> {
}
}

/// Returns a default enviroment with height, time, chain_id, and contract address
/// Returns a default environment with height, time, chain_id, and contract address
/// You can submit as is to most contracts, or modify height/time if you want to
/// test for expiration.
///
Expand Down

0 comments on commit f6e9c61

Please sign in to comment.