From 997b73e839b12c19e72437d30acd8146a6812591 Mon Sep 17 00:00:00 2001 From: Jordan Ribbink Date: Tue, 21 May 2024 22:54:19 -0700 Subject: [PATCH] sendtx revert --- packages/flow-cadut/src/interactions.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/flow-cadut/src/interactions.js b/packages/flow-cadut/src/interactions.js index 62359a7..a06ad01 100644 --- a/packages/flow-cadut/src/interactions.js +++ b/packages/flow-cadut/src/interactions.js @@ -113,19 +113,17 @@ export const waitForStatus = statusValue => { export const sendTransaction = async props => { const {wait = "seal"} = props try { - const txId = await fcl.decode( - await prepareInteraction(props, "transaction") - ) + const response = await prepareInteraction(props, "transaction") if (wait) { const waitMethod = waitForStatus(wait) - const rawResult = await fcl.tx(txId)[waitMethod]() + const rawResult = await fcl.tx(response)[waitMethod]() const txResult = { - txId, + txId: response, ...rawResult, } return [txResult, null] } - return [txId, null] + return [response.transactionId, null] } catch (e) { return [null, e] }