From 1530cd8393b3570032301dd2fd642657c8d06ef3 Mon Sep 17 00:00:00 2001 From: 223880 Date: Mon, 4 Nov 2024 10:51:52 -0300 Subject: [PATCH] Fix oracle --- api/oracle.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/oracle.js b/api/oracle.js index 12f55ca3..130138bb 100644 --- a/api/oracle.js +++ b/api/oracle.js @@ -1,4 +1,5 @@ const {UTXO, Payment, P2TR} = require('bitcoinjs-lib'); +const OracleInfo = require('./oracleInfo') const oracle = { getUTXO: async (txid, vout) => { @@ -14,6 +15,13 @@ const oracle = { return p2tr } } +const OracleInfo = +{ + getUTXO, + getPayment, + getP2TR +} + const {getUTXO, getPayment, getP2TR} = oracle confirmation.getUTXO = getUTXO; confirmation.getPayment = getPayment;