Skip to content

Commit

Permalink
remove cache time
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis committed Nov 11, 2024
1 parent 291719c commit a54a964
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.

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

Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ contract TasksSystem is System {
function deleteTask(bytes32 id) public {
Tasks.deleteRecord(id);
}

function deleteTask11(bytes32 id) public {
Tasks.deleteRecord(id);
}
}
3 changes: 2 additions & 1 deletion packages/explorer/src/app/(explorer)/api/world-abi/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Address, Hex, createPublicClient, http, parseAbi } from "viem";
import { getBlockNumber } from "viem/actions";
import { fetchBlockLogs } from "@latticexyz/block-logs-stream";
import { helloStoreEvent } from "@latticexyz/store";
import { helloWorldEvent } from "@latticexyz/world";
Expand All @@ -19,7 +20,7 @@ async function getClient(chainId: supportedChainId) {

async function getParameters(chainId: supportedChainId, worldAddress: Address) {
const client = await getClient(chainId);
const toBlock = await client.getBlockNumber();
const toBlock = await getBlockNumber(client, { cacheTime: 0 });
const logs = await fetchBlockLogs({
fromBlock: 0n,
toBlock,
Expand Down

0 comments on commit a54a964

Please sign in to comment.