Skip to content

Commit

Permalink
convert type to json object
Browse files Browse the repository at this point in the history
  • Loading branch information
TalDerei committed Aug 20, 2024
1 parent dfa99dc commit 0a387d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/context/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { AppParameters } from '@penumbra-zone/protobuf/penumbra/core/app/v1/app_
import { AssetId } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import Penumbra1Genesis from './penumbra-1-genesis.json';
import { CompactBlock } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/compact_block/v1/compact_block_pb';
import { JsonValue } from '@bufbuild/protobuf';
import { JsonObject } from '@bufbuild/protobuf';

export interface ServicesConfig {
readonly chainId: string;
Expand Down Expand Up @@ -108,7 +108,9 @@ export class Services implements ServicesInterface {

const blockProcessor = new BlockProcessor({
genesisBlock:
chainId === 'penumbra-1' ? CompactBlock.fromJson(Penumbra1Genesis as JsonValue) : undefined,
chainId === 'penumbra-1'
? CompactBlock.fromJson(Penumbra1Genesis as JsonObject)
: undefined,
viewServer,
querier,
indexedDb,
Expand Down

0 comments on commit 0a387d2

Please sign in to comment.