Skip to content

Commit

Permalink
fix txid return
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed May 21, 2024
1 parent 435d733 commit 8c0069a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/flow-cadut/src/interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,17 @@ export const waitForStatus = statusValue => {
export const sendTransaction = async props => {
const {wait = "seal"} = props
try {
const response = await fcl.decode(await prepareInteraction(props, "transaction"))
const txId = await fcl.decode(await prepareInteraction(props, "transaction"))

Check failure on line 116 in packages/flow-cadut/src/interactions.js

View workflow job for this annotation

GitHub Actions / test

Replace `await·prepareInteraction(props,·"transaction")` with `⏎······await·prepareInteraction(props,·"transaction")⏎····`
if (wait) {
const waitMethod = waitForStatus(wait)
const rawResult = await fcl.tx(response)[waitMethod]()

Check failure on line 119 in packages/flow-cadut/src/interactions.js

View workflow job for this annotation

GitHub Actions / test

'response' is not defined
const txResult = {
txId: response,
txId,
...rawResult,
}
return [txResult, null]
}
return [response.transactionId, null]
return [txId, null]
} catch (e) {
return [null, e]
}
Expand Down

0 comments on commit 8c0069a

Please sign in to comment.