diff --git a/packages/utils/gno.ts b/packages/utils/gno.ts index 99612d9f86..0ea4e59c85 100644 --- a/packages/utils/gno.ts +++ b/packages/utils/gno.ts @@ -40,20 +40,11 @@ export const adenaDoContract = async ( throw new Error(res.message); } const hash: string = res.data.hash; - const { height: txHeight, index } = await client.waitForTransaction( + await client.waitForTransaction( hash, height, ); - const blockResult = await client.getBlockResult(txHeight); - const deliverResults = blockResult.results.deliver_tx || []; - if (deliverResults.length <= index) { - throw new Error("tx result not found in block"); - } - const err = deliverResults[index].ResponseBase.Error; - if (err) { - console.error(deliverResults[index]); - throw new Error(JSON.stringify(err)); - } + return hash; };