From cbfe5bb5ac22d0d38c50779eb115d70114261a7a Mon Sep 17 00:00:00 2001 From: Marcel O'Neil Date: Mon, 27 Aug 2018 11:45:49 -0400 Subject: [PATCH] return generated txkey with tx --- cryptonote_utils/cryptonote_utils.js | 2 +- monero_utils/monero_sendingFunds_utils.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cryptonote_utils/cryptonote_utils.js b/cryptonote_utils/cryptonote_utils.js index dc4c587..e771ee0 100644 --- a/cryptonote_utils/cryptonote_utils.js +++ b/cryptonote_utils/cryptonote_utils.js @@ -2759,7 +2759,7 @@ var cnUtil = function(currencyConfig) { ); } console.log(tx); - return tx; + return { tx, txkey }; }; this.create_transaction = function( diff --git a/monero_utils/monero_sendingFunds_utils.js b/monero_utils/monero_sendingFunds_utils.js index f0ddcc4..41b92ff 100644 --- a/monero_utils/monero_sendingFunds_utils.js +++ b/monero_utils/monero_sendingFunds_utils.js @@ -652,7 +652,7 @@ function SendFunds( console.log("Decomposed destinations:"); monero_utils.printDsts(splitDestinations); // - signedTx = monero_utils.create_transaction( + var fullTx = monero_utils.create_transaction( wallet__public_keys, wallet__private_keys, splitDestinations, @@ -667,6 +667,7 @@ function SendFunds( isRingCT, nettype, ); + var signedTx = fullTx.tx; } catch (e) { var errStr; if (e) {