Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
const [content, setContent] = useState("");
const hasDeadline = true; // mandatory 7-day deadline for all storylines

const { state, error, receipt, execute, reset } = usePublish();

Check warning on line 38 in src/app/create/page.tsx

View workflow job for this annotation

GitHub Actions / lint-and-typecheck

'reset' is assigned a value but never used
const { valid, charCount } = validateContentLength(content);
const titleValid = title.trim().length > 0;
const canSubmit =
Expand Down Expand Up @@ -117,7 +117,7 @@
abi: storyFactoryAbi as unknown as [],
functionName: "createStoryline",
args: [title.trim(), cid, contentHash, hasDeadline],
gas: BigInt(5_000_000),
gas: BigInt(16_000_000),
}),
});
}}
Expand Down
1 change: 1 addition & 0 deletions src/hooks/usePublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export function usePublish() {

// 4. Trigger indexer
setState("indexing");
await new Promise((r) => setTimeout(r, 5000));
await fetch(opts.indexerRoute, {
method: "POST",
headers: { "Content-Type": "application/json" },
Expand Down
Loading