From 0c14975fcbffbfacb2490a8ed20c81acafa61955 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Wed, 10 May 2023 01:52:34 +0530 Subject: [PATCH] removing unused dummy fns --- scripts/flo-webwallet.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/scripts/flo-webwallet.js b/scripts/flo-webwallet.js index bfb1e0b..cf2443c 100644 --- a/scripts/flo-webwallet.js +++ b/scripts/flo-webwallet.js @@ -110,23 +110,6 @@ }) } - function sendRawTransaction(receiver, utxo, vout, scriptPubKey, data, wif) { - var trx = bitjs.transaction(); - trx.addinput(utxo, vout, scriptPubKey) - trx.addoutput(receiver, floBlockchainAPI.sendAmt); - trx.addflodata(data); - var signedTxHash = trx.sign(wif, 1); - return floBlockchainAPI.broadcastTx(signedTxHash); - } - - function sendTokens_raw(privKey, receiverID, token, amount, utxo, vout, scriptPubKey) { - return new Promise((resolve, reject) => { - sendRawTransaction(receiverID, utxo, vout, scriptPubKey, `send ${amount} ${token}#`, privKey) - .then(txid => resolve([receiverID, txid])) - .catch(error => reject([receiverID, error])) - }) - } - //bulk transfer tokens floWebWallet.bunkTransferTokens = function (sender, privKey, token, receivers) { return new Promise((resolve, reject) => {