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 some typos in comments #598

Closed
wants to merge 1 commit into from
Closed
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 packages/hop-node/src/watchers/classes/Bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ export default class Bridge extends ContractBase {

shouldAttemptSwapDuringBondWithdrawal (amountOutMin: BigNumber, deadline: BigNumber): boolean {
// Do not check if the asset uses an AMM. This function only cares about the amountOutMin and deadline
// so that it knows what function to call on-chain. This function is unconcerned with wether or not
// so that it knows what function to call on-chain. This function is unconcerned with weather or not
// an asset uses an AMM, since a non-AMM asset can still provide amountOutMin and deadline values.
return amountOutMin?.gt(0) || deadline?.gt(0)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/hop-node/src/watchers/classes/L2Bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default class L2Bridge extends Bridge {
return this.chainId
}
if (!this.bridgeContract) {
// latest TypeScript version throws an if we call super, so we call a seperate function
// latest TypeScript version throws an if we call super, so we call a separate function
return this.getChainIdFn()
}
const chainId = Number(
Expand Down
2 changes: 1 addition & 1 deletion packages/hop-node/test/eventsBatch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe.skip('eventsBatch', () => {

await bridge.eventsBatch(
async (start: number, end: number, i: number | undefined) => {
// eventsBatch resets when it enounters an error in process
// eventsBatch resets when it encounters an error in process
if (iterations === halfway) {
expect(start).toBeGreaterThanOrEqual(firstStart)
expect(end).toBeGreaterThanOrEqual(firstEnd)
Expand Down
2 changes: 1 addition & 1 deletion packages/v2-explorer-frontend/src/pages/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ Destination Transaction Hash:
<Link href={event?.messageRelayedEvent?.context?.transactionHashExplorerUrl} target="_blank" rel="noreferrer">
{event?.messageRelayedEvent?.context?.transactionHash}
</Link>
) : <Box>- <small><em>(Destination tx hash wil be availabe once message is relayed)</em></small></Box>)
) : <Box>- <small><em>(Destination tx hash wil be available once message is relayed)</em></small></Box>)
}
</TableCell>
</TableRow>
Expand Down