From 69532354f4954138fecf25598ff0e1ad256d6722 Mon Sep 17 00:00:00 2001 From: Greg Nazario Date: Wed, 11 Oct 2023 13:51:05 -0700 Subject: [PATCH] [api] Remove duplicate memoize on estimate gas price --- src/api/transaction.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/api/transaction.ts b/src/api/transaction.ts index 327d47422..2eccd649c 100644 --- a/src/api/transaction.ts +++ b/src/api/transaction.ts @@ -11,7 +11,6 @@ import { } from "../internal/transaction"; import { AnyNumber, GasEstimation, HexInput, PaginationArgs, TransactionResponse } from "../types"; import { AptosConfig } from "./aptos_config"; -import { memoizeAsync } from "../utils/memoize"; export class Transaction { readonly config: AptosConfig; @@ -130,14 +129,9 @@ export class Transaction { * ``` */ async getGasPriceEstimation(): Promise { - const gasEstimation = await memoizeAsync( - async () => - getGasPriceEstimation({ - aptosConfig: this.config, - }), - `gas-price-${this.config.network}`, - 1000 * 60 * 5, // 5 minutes - )(); + const gasEstimation = getGasPriceEstimation({ + aptosConfig: this.config, + }); return gasEstimation; } }