diff --git a/clients/js/src/compat.ts b/clients/js/src/compat.ts index 32f2017b..a3602ed1 100644 --- a/clients/js/src/compat.ts +++ b/clients/js/src/compat.ts @@ -247,6 +247,13 @@ export function wrapEthersProvider
( estimateGas: hookEthersCall(provider, 'estimateGas', filled_options), }; + if ('getSigner' in provider) { + hooks['getSigner'] = async function (...args: unknown[]) { + const r = await (provider as any).getSigner(...args); + return wrapEthersSigner(r); + }; + } + // When a signer is also provided, we can re-pack transactions // But only if they've been signed by the same address as the signer if (signer) {