diff --git a/packages/hooks/feed/useFeedPosting.ts b/packages/hooks/feed/useFeedPosting.ts index 7eed2ec3a..c24111835 100644 --- a/packages/hooks/feed/useFeedPosting.ts +++ b/packages/hooks/feed/useFeedPosting.ts @@ -127,6 +127,7 @@ export const useFeedPosting = ( const provider = new GnoJSONRPCProvider(network.endpoint); await provider.waitForTransaction(txHash); setStep(feedPostingStep(FeedPostingStepId.DONE)); + onSuccess && onSuccess(); } else { setStep(feedPostingStep(FeedPostingStepId.POSTING)); diff --git a/packages/utils/gno.ts b/packages/utils/gno.ts index 021fa9e73..52d17796e 100644 --- a/packages/utils/gno.ts +++ b/packages/utils/gno.ts @@ -40,6 +40,7 @@ export const adenaDoContract = async ( throw new Error(res.message); } const hash: string = res.data.hash; + await client.waitForTransaction(hash,height); return hash;