Skip to content

Commit 5101c23

Browse files
authored
fix missing get latest block (#466)
1 parent 6217c50 commit 5101c23

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/server/routes/contract/subscriptions/getLatestBlock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ responseSchema.example = {
2121
},
2222
};
2323

24-
export async function getContractSubscriptions(fastify: FastifyInstance) {
24+
export async function getLatestBlock(fastify: FastifyInstance) {
2525
fastify.route<{
2626
Querystring: Static<typeof chainRequestQuerystringSchema>;
2727
Reply: Static<typeof responseSchema>;

src/server/routes/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ import { pageEventLogs } from "./contract/events/paginateEventLogs";
122122
import { addContractSubscription } from "./contract/subscriptions/addContractSubscription";
123123
import { getContractIndexedBlockRange } from "./contract/subscriptions/getContractIndexedBlockRange";
124124
import { getContractSubscriptions } from "./contract/subscriptions/getContractSubscriptions";
125+
import { getLatestBlock } from "./contract/subscriptions/getLatestBlock";
125126
import { removeContractSubscription } from "./contract/subscriptions/removeContractSubscription";
126127
import { getContractTransactionReceipts } from "./contract/transactions/getTransactionReceipts";
127128
import { getContractTransactionReceiptsByTimestamp } from "./contract/transactions/getTransactionReceiptsByTimestamp";
@@ -253,6 +254,7 @@ export const withRoutes = async (fastify: FastifyInstance) => {
253254
await fastify.register(getContractSubscriptions);
254255
await fastify.register(getContractIndexedBlockRange);
255256
await fastify.register(removeContractSubscription);
257+
await fastify.register(getLatestBlock);
256258

257259
// Contract Transactions
258260
await fastify.register(getContractTransactionReceipts);

0 commit comments

Comments
 (0)