Skip to content

Commit

Permalink
chore: fix some typos in comments
Browse files Browse the repository at this point in the history
Signed-off-by: largemouth <largemouth@aliyun.com>
  • Loading branch information
largemouth committed Apr 22, 2024
1 parent 0696682 commit 53f1662
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 53f1662

Please sign in to comment.