diff --git a/src/app/create/page.tsx b/src/app/create/page.tsx index 66b251b1..3acc29de 100644 --- a/src/app/create/page.tsx +++ b/src/app/create/page.tsx @@ -117,6 +117,7 @@ export default function CreateStorylinePage() { abi: storyFactoryAbi as unknown as [], functionName: "createStoryline", args: [title.trim(), cid, contentHash, hasDeadline], + gas: BigInt(5_000_000), }), }); }} diff --git a/src/hooks/useChainPlot.ts b/src/hooks/useChainPlot.ts index de72ab4c..22f4b129 100644 --- a/src/hooks/useChainPlot.ts +++ b/src/hooks/useChainPlot.ts @@ -23,6 +23,7 @@ export function useChainPlot() { abi: storyFactoryAbi as unknown as [], functionName: "chainPlot", args: [BigInt(storylineId), title, cid, contentHash], + gas: BigInt(500_000), }), }); }, diff --git a/src/hooks/usePublish.ts b/src/hooks/usePublish.ts index 955efcdf..db788fed 100644 --- a/src/hooks/usePublish.ts +++ b/src/hooks/usePublish.ts @@ -20,6 +20,7 @@ interface WriteCall { abi: Abi; functionName: string; args: readonly unknown[]; + gas?: bigint; } interface PublishOptions {