Skip to content

Commit

Permalink
CHORE: update buf.build deps for penumbra. Fixed returned API payload…
Browse files Browse the repository at this point in the history
… for validators.
  • Loading branch information
ejmg committed May 16, 2024
1 parent c27c5f8 commit c717d76
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@buf/cometbft_cometbft.bufbuild_es": "^1.8.0-20240312114316-c0d3497e35d6.2",
"@buf/cosmos_ibc.bufbuild_es": "^1.8.0-20240215124455-b32ecf3ebbcb.2",
"@buf/penumbra-zone_penumbra.bufbuild_es": "^1.9.0-20240426013425-8bd0992b1afd.1",
"@buf/penumbra-zone_penumbra.bufbuild_es": "^1.9.0-20240516191513-d29d4eb45a4b.1",
"@bufbuild/protobuf": "^1.4.2",
"@connectrpc/connect": "^1.1.3",
"@microlink/react-json-view": "^1.23.0",
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/blocks/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function POST(req: Request) {

const pages = Math.floor((count / 10) + 1);

return new Response(JSON.stringify({ pages, blocks }));
return new Response(JSON.stringify({ pages, results: blocks }));
} catch (error) {
console.error("Error occurred while requesting Blocks", error);
return new Response("Could not query blocks.", { status: 404});
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/transactions/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function POST(req: Request) {
// Ensure that our pagination doesn't cut off early.
const pages = Math.floor((count / 10) + 1);

return new Response(JSON.stringify({ pages, blockEvents }));
return new Response(JSON.stringify({ pages, results: blockEvents }));
} catch (error) {
console.log(error);
return new Response("Could not load events.", { status: 404 });
Expand Down

0 comments on commit c717d76

Please sign in to comment.