Skip to content

Commit 236b4a5

Browse files
thibault-martinezalexsporn
authored andcommitted
chore: fix newly detected typos (#4662)
* chore: fix newly detected typos * fix: typo --------- Co-authored-by: Alexander Sporn <[email protected]>
1 parent 1509133 commit 236b4a5

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

bridge/evm/contracts/utils/BridgeUtils.sol

+4-4
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ library BridgeUtils {
225225

226226
// why `add(recipientAddressLength, offset)`?
227227
// At this point, offset = 35, recipientAddressLength = 20. `mload(add(payload, 55))`
228-
// reads the next 32 bytes from bytes 23 in paylod, because the first 32 bytes
228+
// reads the next 32 bytes from bytes 23 in payload, because the first 32 bytes
229229
// of payload stores its length. So in reality, bytes 23 - 54 is loaded. During
230-
// casting to address (20 bytes), the least sigificiant bytes are retained, namely
230+
// casting to address (20 bytes), the least significant bytes are retained, namely
231231
// `recipientAddress` is bytes 35-54
232232
assembly {
233233
recipientAddress := mload(add(_payload, add(recipientAddressLength, offset)))
@@ -245,9 +245,9 @@ library BridgeUtils {
245245

246246
// Why `add(amountLength, offset)`?
247247
// At this point, offset = 56, amountLength = 8. `mload(add(payload, 64))`
248-
// reads the next 32 bytes from bytes 32 in paylod, because the first 32 bytes
248+
// reads the next 32 bytes from bytes 32 in payload, because the first 32 bytes
249249
// of payload stores its length. So in reality, bytes 32 - 63 is loaded. During
250-
// casting to uint64 (8 bytes), the least sigificiant bytes are retained, namely
250+
// casting to uint64 (8 bytes), the least significant bytes are retained, namely
251251
// `recipientAddress` is bytes 56-63
252252
assembly {
253253
amount := mload(add(_payload, add(amountLength, offset)))

crates/iota-config/src/p2p.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ pub struct DiscoveryConfig {
321321
#[serde(skip_serializing_if = "Option::is_none")]
322322
pub access_type: Option<AccessType>,
323323

324-
/// Like `seed_peers` in `P2pConfig`, allowlisted peers will awlays be
324+
/// Like `seed_peers` in `P2pConfig`, allowlisted peers will always be
325325
/// allowed to establish connection with this node regardless of the
326326
/// concurrency limit. Unlike `seed_peers`, a node does not reach out to
327327
/// `allowlisted_peers` preferentially. It is also used to determine if

crates/iota-core/src/transaction_orchestrator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ impl TransactionOrchestratorMetrics {
673673
)
674674
.unwrap(),
675675
wait_for_finality_finished: register_int_counter_with_registry!(
676-
"tx_orchestrator_wait_for_finality_fnished",
676+
"tx_orchestrator_wait_for_finality_finished",
677677
"Total number of txns Transaction Orchestrator gets responses from Quorum Driver before timeout, either success or failure",
678678
registry,
679679
)

crates/iota-core/src/unit_tests/congestion_control_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ impl TestSetup {
206206
}
207207
}
208208

209-
// Creates a transaction that touchs the shared objects `shared_object_1` and
209+
// Creates a transaction that touches the shared objects `shared_object_1` and
210210
// `shared_object_2`, and `owned_object`, and executes the transaction in
211211
// `authority_state`. Returns the transaction and the effects of the execution.
212212
async fn update_objects(

crates/iota-indexer/src/models/large_objects.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ pub fn put_large_object_in_chunks<T: R2D2Connection + Send + 'static>(
7878
let offset = (chunk_num * chunk_size) as i64;
7979
tracing::trace!("Storing large-object chunk at offset {}", offset);
8080
// TODO: (to treat in a different issue):
81-
// remove dangling chunks (either by using a transaction or by handlng manually)
81+
// remove dangling chunks (either by using a transaction or by handling
82+
// manually)
8283
//
8384
// additionally we could apply a backoff retry strategy
8485
transactional_blocking_with_retry!(

crates/iota/src/validator_commands.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1087,18 +1087,18 @@ pub async fn get_validator_summary(
10871087
status = Some(ValidatorStatus::Active);
10881088
Some(active_validators.remove(&validator_address).unwrap())
10891089
} else {
1090-
// Check panding validators
1090+
// Check pending validators
10911091
get_pending_candidate_summary(validator_address, client, pending_active_validators_id)
10921092
.await?
10931093
.map(|v| v.into_iota_validator_summary())
10941094
.tap_some(|_s| status = Some(ValidatorStatus::Pending))
10951095

1096-
// TODO also check candidate and inactive valdiators
1096+
// TODO also check candidate and inactive validators
10971097
};
10981098
if validator_info.is_none() {
10991099
return Ok(None);
11001100
}
1101-
// status is safe unwrap because it has to be Some when the code recahes here
1101+
// status is safe unwrap because it has to be Some when the code reaches here
11021102
// validator_info is safe to unwrap because of the above check
11031103
Ok(Some((status.unwrap(), validator_info.unwrap())))
11041104
}

0 commit comments

Comments
 (0)