From ea7bc5b03c23bfed5e3c40345f0728b86e0f53ca Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Tue, 24 Sep 2024 13:52:18 -0600 Subject: [PATCH] add interface for signer --- src/lib/Signer.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/Signer.ts b/src/lib/Signer.ts index 3ef6a7c3f..437d435b7 100644 --- a/src/lib/Signer.ts +++ b/src/lib/Signer.ts @@ -2,6 +2,8 @@ import type { WalletClient } from 'viem' export interface Signer { getAddress: () => Promise + getChainId: () => bigint + isSmartContractWallet: () => boolean signMessage: (message: string) => Promise } @@ -37,5 +39,8 @@ export function convertWalletClientToSigner( message: typeof message === 'string' ? message : { raw: message }, account, }), + // Not supported by viem wallet client yet + getChainId: () => 1n, + isSmartContractWallet: () => false, } }