Skip to content

Commit

Permalink
Fix typos (#20781)
Browse files Browse the repository at this point in the history
## Description 

This PR focuses on correcting typos and improving clarity in comments
and logs.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] gRPC:
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:

Signed-off-by: chloefeal <[email protected]>
  • Loading branch information
chloefeal authored Jan 5, 2025
1 parent 232d616 commit 7dff97e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions crates/sui-rpc-api/src/rest/transactions/resolve/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ fn resolve_arg(
let value = Base64::decode(&v).map_err(|e| {
RpcServiceError::new(
axum::http::StatusCode::BAD_REQUEST,
format!("argument is an invalid pure arguement: {e}"),
format!("argument is an invalid pure argument: {e}"),
)
})?;
CallArg::Pure(value)
Expand All @@ -409,7 +409,7 @@ fn resolve_arg(
let value = serde_json::from_value(serde_json::Value::from(array)).map_err(|e| {
RpcServiceError::new(
axum::http::StatusCode::BAD_REQUEST,
format!("argument is an invalid pure arguement: {e}"),
format!("argument is an invalid pure argument: {e}"),
)
})?;
CallArg::Pure(value)
Expand Down Expand Up @@ -544,7 +544,7 @@ fn resolve_shared_input(
resolve_shared_input_with_object(called_packages, commands, arg_idx, object)
}

// Checks if the provided input argument is used as a recieving object
// Checks if the provided input argument is used as a receiving object
fn is_input_argument_receiving(
called_packages: &HashMap<ObjectId, NormalizedPackage>,
commands: &[Command],
Expand Down
4 changes: 2 additions & 2 deletions crates/sui-types/src/messages_grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub struct HandleCertificateResponseV3 {
/// versions of shared objects.
//
// TODO: In the future we may want to include shared objects or child objects which were read
// but not modified during exectuion.
// but not modified during execution.
pub input_objects: Option<Vec<Object>>,

/// If requested, will included all changed objects, including mutated, created and unwrapped
Expand Down Expand Up @@ -247,7 +247,7 @@ pub struct HandleTransactionResponseV2 {
/// versions of shared objects.
//
// TODO: In the future we may want to include shared objects or child objects which were read
// but not modified during exectuion.
// but not modified during execution.
pub input_objects: Option<Vec<Object>>,

/// If requested, will included all changed objects, including mutated, created and unwrapped
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-types/src/storage/read_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ pub struct DynamicFieldIndexInfo {
pub name_value: Vec<u8>,
// TODO do we want to also store the type of the value? We can get this for free for
// DynamicFields, but for DynamicObjects it would require a lookup in the DB on init, or
// scanning the transaction's output objects for the coorisponding Object to retreive its type
// scanning the transaction's output objects for the coorisponding Object to retrieve its type
// information.
//
// pub value_type: TypeTag,
Expand Down
2 changes: 1 addition & 1 deletion crates/suiop-cli/src/cli/lib/oauth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use tokio::task;
use tracing::{debug, info};

// Okta client created for Mysten Labs
// Contact #techops-suport for replacement
// Contact #techops-support for replacement
const CLIENT_ID: &str = "0oacw4bwt1BOV410t697";

#[derive(Deserialize)]
Expand Down
2 changes: 1 addition & 1 deletion crates/suiop-cli/src/cli/pulumi/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn ensure_pulumi_authed() -> Result<()> {
vec!["bash", "-c", "pulumi login"],
Some(CommandOptions::new(true, false)),
)?;
info!("logged in sucessfully")
info!("logged in successfully")
} else {
debug!("authed");
}
Expand Down

0 comments on commit 7dff97e

Please sign in to comment.