Skip to content

Commit

Permalink
Merge pull request #168 from penumbra-zone/fix-proto-update-client
Browse files Browse the repository at this point in the history
Fix decoding errors on client
  • Loading branch information
ejmg authored Aug 9, 2024
2 parents 25e360d + f867c0c commit 4c8245f
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 172 deletions.
10 changes: 5 additions & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"dependencies": {
"@buf/cometbft_cometbft.bufbuild_es": "^1.8.0-20240312114316-c0d3497e35d6.2",
"@buf/cosmos_ibc.bufbuild_es": "^1.9.0-20240327103030-e2006674271c.1",
"@buf/penumbra-zone_penumbra.bufbuild_es": "^1.9.0-20240520205529-36b404d2dbac.1",
"@buf/penumbra-zone_penumbra.connectrpc_es": "^1.4.0-20240520205529-36b404d2dbac.2",
"@buf/penumbra-zone_penumbra.connectrpc_query-es": "^1.4.1-20240528180215-8fe1c79485f8.1",
"@bufbuild/protobuf": "^1.9.0",
"@buf/cosmos_ibc.bufbuild_es": "1.10.0-20240806013332-7ba0ade26258.1",
"@buf/penumbra-zone_penumbra.bufbuild_es": "1.10.0-20240807155725-ffd12c6ea3c1.1",
"@buf/penumbra-zone_penumbra.connectrpc_es": "1.4.0-20240807155725-ffd12c6ea3c1.3",
"@buf/penumbra-zone_penumbra.connectrpc_query-es": "1.4.1-20240807155725-ffd12c6ea3c1.1",
"@bufbuild/protobuf": "^1.10.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-query": "^1.4.1",
"@connectrpc/connect-web": "^1.4.0",
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/TransactionView/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type FC } from "react";
import { TransactionView as TransactionViewSchema, Transaction, TransactionBodyView as TransactionBodyViewSchema, MemoView } from "@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/transaction/v1/transaction_pb";
import { makeActionView } from "@/lib/protobuf";
import { ibcRegistry, makeActionView } from "@/lib/protobuf";
import { TransactionBodyView } from "./TransactionBodyView";
import { FlexRow } from "../ui/flex";
import { ActionRow } from "../ActionView";
Expand Down Expand Up @@ -39,7 +39,7 @@ interface TransactionViewProps {
}

export const TransactionView : FC<TransactionViewProps> = ({ tx }) => {
const txView = makeTransactionView(Transaction.fromJson(tx));
const txView = makeTransactionView(Transaction.fromJson(tx, { typeRegistry: ibcRegistry }));
return (
<FlexRow className="flex-wrap justify-start w-full">
<p className="font-semibold sm:text-lg">Transaction View</p>
Expand Down
Loading

0 comments on commit 4c8245f

Please sign in to comment.