From 95f50aefd1db8cb30e2a4494a7ead6de8c49e2f5 Mon Sep 17 00:00:00 2001 From: debuggingfuture Date: Fri, 7 Feb 2025 02:15:37 +0800 Subject: [PATCH] fix: use cdp wallet address at estimateGas --- typescript/agentkit/src/wallet-providers/cdpWalletProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/agentkit/src/wallet-providers/cdpWalletProvider.ts b/typescript/agentkit/src/wallet-providers/cdpWalletProvider.ts index 2ffbcadc6..697bbfeef 100644 --- a/typescript/agentkit/src/wallet-providers/cdpWalletProvider.ts +++ b/typescript/agentkit/src/wallet-providers/cdpWalletProvider.ts @@ -274,7 +274,7 @@ export class CdpWalletProvider extends EvmWalletProvider { const feeData = await this.#publicClient!.estimateFeesPerGas(); const gas = await this.#publicClient!.estimateGas({ - account: this.#publicClient.account, + account: this.#address! as `0x${string}`, to, value, data,