Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd committed Feb 14, 2024
1 parent 63e4844 commit a2a30d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion demo/09_settle_contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,19 @@ if (!settled_contract.spent) {

/** ========== [ Review Transaction ] ========== **/

const txid = settled_contract.spent_txid

if (DEMO_MODE) {
print_banner('final transaction')
console.log('waiting a few seconds for tx to propagate the pool...\n')
await sleep(5000)

// Fetch the settlement tx from the oracle.
const txdata = await client.oracle.get_txdata(settled_contract.spent_txid)
const txdata = await client.oracle.get_txdata(txid)
// Print the transaction data to console.
console.dir(txdata, { depth : null })

print_banner('demo complete!')
console.log('view your transaction here:')
console.log(`\n${client._oracle}/tx/${txid}\n`)
}

0 comments on commit a2a30d5

Please sign in to comment.