diff --git a/src/handlers/gasPriceManager.ts b/src/handlers/gasPriceManager.ts index 3e9001b9..6ee0a061 100644 --- a/src/handlers/gasPriceManager.ts +++ b/src/handlers/gasPriceManager.ts @@ -557,9 +557,13 @@ export class GasPriceManager { } public async validateGasPrice(gasPrice: GasPriceParameters) { - const lowestMaxFeePerGas = await this.getMinMaxFeePerGas() - const lowestMaxPriorityFeePerGas = - await this.getMinMaxPriorityFeePerGas() + let lowestMaxFeePerGas = await this.getMinMaxFeePerGas() + let lowestMaxPriorityFeePerGas = await this.getMinMaxPriorityFeePerGas() + + if (this.chainType === "hedera") { + lowestMaxFeePerGas /= 10n ** 9n + lowestMaxPriorityFeePerGas /= 10n ** 9n + } if (gasPrice.maxFeePerGas < lowestMaxFeePerGas) { throw new RpcError(