Skip to content

Commit

Permalink
Fix gas prices RPC (#1626)
Browse files Browse the repository at this point in the history
* Fix gas prices RPC

* changeset
  • Loading branch information
Valentine1898 authored Aug 2, 2024
1 parent 55c5f69 commit ecc548e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-months-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@penumbra-zone/services': minor
---

Fix gas prices RPC
4 changes: 2 additions & 2 deletions packages/services/src/view-service/gas-prices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
};

0 comments on commit ecc548e

Please sign in to comment.