Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
montelaidev committed Jan 29, 2024
1 parent ea34644 commit 9ff938b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/snap/src/keyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import {
} from './constants/dummy-values';
import { DEFAULT_ENTRYPOINTS } from './constants/entrypoints';
import { logger } from './logger';
import { InternalMethod } from './permissions';
import { saveState } from './stateManagement';
import {
EntryPoint__factory,
Expand All @@ -51,7 +52,6 @@ import {
runSensitive,
throwError,
} from './utils/util';
import { InternalMethod } from './permissions';

const unsupportedAAMethods = [
EthMethod.SignTransaction,
Expand Down Expand Up @@ -120,7 +120,7 @@ export class AccountAbstractionKeyring implements Keyring {
);
}
const bundlerUrlRegex =
/^(https?:\/\/)?[\w\.-]+(:\d{2,6})?(\/[\/\w \.-]*)?$/;
/^(https?:\/\/)?[\w\\.-]+(:\d{2,6})?(\/[\\/\w \\.-]*)?$/u;
if (config.bundlerUrl && !bundlerUrlRegex.test(config.bundlerUrl)) {
throwError(`[Snap] Invalid Bundler URL: ${config.bundlerUrl}`);
}
Expand Down Expand Up @@ -499,6 +499,7 @@ export class AccountAbstractionKeyring implements Keyring {
const chainConfig = this.#getChainConfig(Number(chainId));

const verifyingPaymasterAddress =
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
chainConfig?.customVerifyingPaymasterAddress!;

if (!verifyingPaymasterAddress) {
Expand Down

0 comments on commit 9ff938b

Please sign in to comment.