Skip to content
Alchemy Logo

isLightAccountVersion2

function isLightAccountVersion2(
  version,
): version is "v2.0.0" | "v2.1.0" | "v2.2.0";

Defined in: packages/smart-accounts/src/light-account/registry.ts:76

Type guard to check if a version is a Light Account v2 version

ParameterTypeDescription

version

"v1.0.1" | "v1.0.2" | "v1.1.0" | "v2.0.0" | "v2.1.0" | "v2.2.0"

The version to check.

version is "v2.0.0" | "v2.1.0" | "v2.2.0"

True if the version is a v2 version.

Was this page helpful?