Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix typos in comments #5088

Merged
merged 7 commits into from
Dec 28, 2024
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 rust/main/hyperlane-core/src/accumulator/incremental.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl IncrementalMerkle {
merkle_root_from_branch(item, &branch, 32, index)
}

/// Verify a incremental merkle proof of inclusion
/// Verify an incremental merkle proof of inclusion
pub fn verify(&self, proof: &Proof) -> bool {
let computed = IncrementalMerkle::branch_root(proof.leaf, proof.path, proof.index);
computed == self.root()
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/client/MailboxClient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ abstract contract MailboxClient is OwnableUpgradeable, PackageVersioned {
}

/**
* @notice Only accept messages from an Hyperlane Mailbox contract
* @notice Only accept messages from a Hyperlane Mailbox contract
*/
modifier onlyMailbox() {
require(
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/client/Router.sol
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ abstract contract Router is MailboxClient, IMessageRecipient {
}

/**
* @notice Assert that the given domain has a Application Router registered and return its address
* @notice Assert that the given domain has an Application Router registered and return its address
* @param _domain The domain of the chain for which to get the Application Router
* @return _router The address of the remote Application Router on _domain
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Ini

/**
* @title AbstractMessageIdAuthorizedIsm
* @notice Uses external verification options to verify interchain messages which need a authorized caller
* @notice Uses external verification options to verify interchain messages which need an authorized caller
*/
abstract contract AbstractMessageIdAuthorizedIsm is
IInterchainSecurityModule,
Expand Down
2 changes: 1 addition & 1 deletion typescript/cli/src/avs/stakeRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async function getOperatorSignature(

// random salt is ok, because we register the operator right after
const salt = utils.hexZeroPad(utils.randomBytes(32), 32);
// give a expiry timestamp 1 hour from now
// give an expiry timestamp 1 hour from now
const expiry = utils.hexZeroPad(
utils.hexlify(Math.floor(Date.now() / 1000) + 60 * 60),
32,
Expand Down
2 changes: 1 addition & 1 deletion typescript/infra/scripts/helloworld/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export async function getHelloWorldMultiProtocolApp(
);

// TODO we need a MultiProtocolIgp
// Using an standard IGP for just evm chains for now
// Using a standard IGP for just evm chains for now
// Unfortunately this requires hacking surgically around certain addresses
const filteredAddresses = filterChainMapToProtocol(
envAddresses,
Expand Down
2 changes: 1 addition & 1 deletion typescript/utils/src/ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function canonizeId(data: BytesLike): Uint8Array {
}

/**
* Converts an Hyperlane ID of 20 or 32 bytes to the corresponding EVM Address.
* Converts a Hyperlane ID of 20 or 32 bytes to the corresponding EVM Address.
*
* For 32-byte IDs this enforces the EVM convention of using the LAST 20 bytes.
*
Expand Down
Loading