From c2faa5cb6721f5fd50730249785d0d0f34cb5ce6 Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Thu, 16 May 2024 16:38:00 +0800 Subject: [PATCH 1/2] fix: update accountType type to string --- src/eth/utils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/eth/utils.ts b/src/eth/utils.ts index 072c60bac..ffa1e3cbb 100644 --- a/src/eth/utils.ts +++ b/src/eth/utils.ts @@ -1,4 +1,3 @@ -import type { InternalAccountType } from '../internal'; import { EthAccountType } from './types'; /** @@ -6,6 +5,6 @@ import { EthAccountType } from './types'; * @param type - The type to check. * @returns Returns true if the type is an EVM account type, false otherwise. */ -export function isEvmAccountType(type: InternalAccountType): boolean { +export function isEvmAccountType(type: string): boolean { return type === EthAccountType.Eoa || type === EthAccountType.Erc4337; } From 2d930322002b9382593804633e5518071fe9062b Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Thu, 16 May 2024 16:54:37 +0800 Subject: [PATCH 2/2] fix: add InternalAccountType as a valid type --- src/eth/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eth/utils.ts b/src/eth/utils.ts index ffa1e3cbb..1c451069d 100644 --- a/src/eth/utils.ts +++ b/src/eth/utils.ts @@ -1,3 +1,4 @@ +import type { InternalAccountType } from '../internal'; import { EthAccountType } from './types'; /** @@ -5,6 +6,6 @@ import { EthAccountType } from './types'; * @param type - The type to check. * @returns Returns true if the type is an EVM account type, false otherwise. */ -export function isEvmAccountType(type: string): boolean { +export function isEvmAccountType(type: InternalAccountType | string): boolean { return type === EthAccountType.Eoa || type === EthAccountType.Erc4337; }