diff --git a/typescript/agentkit/CHANGELOG.md b/typescript/agentkit/CHANGELOG.md index c5b2cceba..8226e3a87 100644 --- a/typescript/agentkit/CHANGELOG.md +++ b/typescript/agentkit/CHANGELOG.md @@ -8,6 +8,10 @@ - Added `token_prices_by_symbol` action to fetch token prices by symbol. - Added `token_prices_by_address` action to fetch token prices by network and address pairs. +### Fixed + +- Added account argument in call to estimateGas in CdpWalletProvider + ## [0.1.1] - 2025-02-02 ### Added diff --git a/typescript/agentkit/src/wallet-providers/cdpWalletProvider.ts b/typescript/agentkit/src/wallet-providers/cdpWalletProvider.ts index b0516afc8..2ffbcadc6 100644 --- a/typescript/agentkit/src/wallet-providers/cdpWalletProvider.ts +++ b/typescript/agentkit/src/wallet-providers/cdpWalletProvider.ts @@ -274,6 +274,7 @@ export class CdpWalletProvider extends EvmWalletProvider { const feeData = await this.#publicClient!.estimateFeesPerGas(); const gas = await this.#publicClient!.estimateGas({ + account: this.#publicClient.account, to, value, data,