From ecc548ec2199915cbf15c215fe4a48e9872c4321 Mon Sep 17 00:00:00 2001 From: Valentine Date: Fri, 2 Aug 2024 16:12:39 +0300 Subject: [PATCH] Fix gas prices RPC (#1626) * Fix gas prices RPC * changeset --- .changeset/spotty-months-grin.md | 5 +++++ packages/services/src/view-service/gas-prices.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/spotty-months-grin.md diff --git a/.changeset/spotty-months-grin.md b/.changeset/spotty-months-grin.md new file mode 100644 index 0000000000..1b468c0f8d --- /dev/null +++ b/.changeset/spotty-months-grin.md @@ -0,0 +1,5 @@ +--- +'@penumbra-zone/services': minor +--- + +Fix gas prices RPC diff --git a/packages/services/src/view-service/gas-prices.ts b/packages/services/src/view-service/gas-prices.ts index 44bbb15be5..9dc9f36f0b 100644 --- a/packages/services/src/view-service/gas-prices.ts +++ b/packages/services/src/view-service/gas-prices.ts @@ -24,13 +24,13 @@ export const gasPrices: Impl['gasPrices'] = async (_, ctx) => { const services = await ctx.values.get(servicesCtx)(); const { indexedDb } = await services.getWalletServices(); const gasPrices = await indexedDb.getNativeGasPrices(); - const altGasPRices = await indexedDb.getAltGasPrices(); + const altGasPrices = await indexedDb.getAltGasPrices(); if (!gasPrices) { throw new ConnectError('Gas prices is not available', Code.NotFound); } return { gasPrices, - altGasPRices, + altGasPrices, }; };