Skip to content

Commit 0fab0ca

Browse files
committed
fix: lint
1 parent 2b03486 commit 0fab0ca

File tree

10 files changed

+240
-236
lines changed

10 files changed

+240
-236
lines changed

typescript/packages/core/test/mocks/cash/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class CashSchemeNetworkClient implements SchemeNetworkClient {
3737
createPaymentPayload(
3838
x402Version: number,
3939
requirements: PaymentRequirements,
40-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
40+
4141
_context?: import("../../../../src/types/mechanisms").PaymentCreationContext,
4242
): Promise<PaymentPayload> {
4343
return Promise.resolve({

typescript/packages/extensions/src/eip-2612-gas-sponsoring/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const EIP2612_GAS_SPONSORING = "eip2612GasSponsoring";
1111
/**
1212
* Canonical Permit2 address (same on all EVM chains).
1313
* The spender in EIP-2612 permits must be this address.
14+
*
1415
* @see https://docs.uniswap.org/contracts/v4/deployments
1516
*/
1617
export const CANONICAL_PERMIT2 = "0x000000000022D473030F116dDEE9F6B43aC78BA3";

typescript/packages/extensions/src/eip-2612-gas-sponsoring/validation.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,18 @@ export function validateEIP2612GasSponsoringSchema(info: unknown): ValidationRes
4646
return { valid: true };
4747
}
4848

49-
const errors =
50-
validate.errors?.map(err => {
51-
const path = err.instancePath || "(root)";
52-
return `${path}: ${err.message}`;
53-
}) || ["Unknown validation error"];
49+
const errors = validate.errors?.map(err => {
50+
const path = err.instancePath || "(root)";
51+
return `${path}: ${err.message}`;
52+
}) || ["Unknown validation error"];
5453

5554
return { valid: false, errors };
5655
} catch (error) {
5756
return {
5857
valid: false,
59-
errors: [`Schema validation failed: ${error instanceof Error ? error.message : String(error)}`],
58+
errors: [
59+
`Schema validation failed: ${error instanceof Error ? error.message : String(error)}`,
60+
],
6061
};
6162
}
6263
}

typescript/packages/extensions/src/erc20-approval-gas-sponsoring/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const ERC20_APPROVAL_GAS_SPONSORING = "erc20ApprovalGasSponsoring";
1111
/**
1212
* Canonical Permit2 address (same on all EVM chains).
1313
* The spender in approval transactions must be this address.
14+
*
1415
* @see https://docs.uniswap.org/contracts/v4/deployments
1516
*/
1617
export const CANONICAL_PERMIT2 = "0x000000000022D473030F116dDEE9F6B43aC78BA3";

typescript/packages/extensions/src/erc20-approval-gas-sponsoring/validation.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,18 @@ export function validateERC20ApprovalGasSponsoringSchema(info: unknown): Validat
4545
return { valid: true };
4646
}
4747

48-
const errors =
49-
validate.errors?.map(err => {
50-
const path = err.instancePath || "(root)";
51-
return `${path}: ${err.message}`;
52-
}) || ["Unknown validation error"];
48+
const errors = validate.errors?.map(err => {
49+
const path = err.instancePath || "(root)";
50+
return `${path}: ${err.message}`;
51+
}) || ["Unknown validation error"];
5352

5453
return { valid: false, errors };
5554
} catch (error) {
5655
return {
5756
valid: false,
58-
errors: [`Schema validation failed: ${error instanceof Error ? error.message : String(error)}`],
57+
errors: [
58+
`Schema validation failed: ${error instanceof Error ? error.message : String(error)}`,
59+
],
5960
};
6061
}
6162
}

0 commit comments

Comments
 (0)