Skip to content

Commit

Permalink
Fix oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Nov 4, 2024
1 parent d27efe4 commit 1530cd8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/oracle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const {UTXO, Payment, P2TR} = require('bitcoinjs-lib');
const OracleInfo = require('./oracleInfo')

const oracle = {
getUTXO: async (txid, vout) => {
Expand All @@ -14,6 +15,13 @@ const oracle = {
return p2tr
}
}
const OracleInfo =
{
getUTXO,
getPayment,
getP2TR
}

const {getUTXO, getPayment, getP2TR} = oracle
confirmation.getUTXO = getUTXO;
confirmation.getPayment = getPayment;
Expand Down

0 comments on commit 1530cd8

Please sign in to comment.