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 comment #2004

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 src/clients/BalanceAllocator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class BalanceAllocator {
this.balances = {};
}

// This method is primarily here to be overriden for testing purposes.
// This method is primarily here to be overridden for testing purposes.
protected async _queryBalance(chainId: number, token: string, holder: string): Promise<BigNumber> {
return getNativeTokenAddressForChain(chainId).toLowerCase() === token.toLowerCase()
? await this.providers[chainId].getBalance(holder)
Expand Down
2 changes: 1 addition & 1 deletion src/clients/TokenClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class TokenClient {
return this.getBalance(deposit.destinationChainId, deposit.outputToken).gte(deposit.outputAmount);
}

// If the relayer tries to execute a relay but does not have enough tokens to fully fill it it will capture the
// If the relayer tries to execute a relay but does not have enough tokens to fully fill it will capture the
// shortfall by calling this method. This will track the information for logging purposes and use in other clients.
captureTokenShortfall(chainId: number, token: string, depositId: number, unfilledAmount: BigNumber): void {
// Shortfall is the previous shortfall + the current unfilledAmount from this deposit.
Expand Down
2 changes: 1 addition & 1 deletion src/dataworker/DataworkerClientHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function getSpokePoolClientEventSearchConfigsForFastDataworker(
: Object.fromEntries(
dataworker.chainIdListForBundleEvaluationBlockNumbers.map((chainId, i) => {
// If block for chainId doesn't exist in bundleEvaluationBlockNumbers, then leave undefined which
// will reuslt in querying from the spoke activation block.
// will result in querying from the spoke activation block.
if (i >= fromBundle.bundleEvaluationBlockNumbers.length) {
return [chainId, undefined];
}
Expand Down
2 changes: 1 addition & 1 deletion test/Dataworker.executePoolRebalances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ describe("Dataworker: Execute pool rebalances", async function () {
expect(errorLogs[0].lastArg.message).to.contain("Not enough funds to execute pool rebalance leaf for chain 137");
});
it("Only mainnet leaves", async function () {
// Shouuld not throw if there are only mainnet leaves.
// Should not throw if there are only mainnet leaves.
const liquidReserves = toBNWei("1");
mockHubPoolClient.setLpTokenInfo(l1Token_1.address, 0, liquidReserves);

Expand Down