From 17b6ca0b7abf05d7469180b8ced70b96c408cd40 Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Tue, 6 Sep 2016 23:03:33 +1200 Subject: [PATCH] execute sendtoaddr function updated --- assets/scripts/coinwallets.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/scripts/coinwallets.js b/assets/scripts/coinwallets.js index 8371896..7eb923b 100644 --- a/assets/scripts/coinwallets.js +++ b/assets/scripts/coinwallets.js @@ -217,11 +217,12 @@ function ConfirmsendCurrency(confirm_val) { function ExecuteSendCurrencyAPI() { console.log('==> SendToAddress API Executed <=='); + var confirm_coinname_to_send = $('#mdl_confirm_currency_coinname').text(); var confirm_send_amount = $('#mdl_confirm_currency_sendfrom_total_dedcut').text(); var confirm_sendto_address = $('#mdl_confirm_currency_sendto_addr').text(); //Get parameters values from confirm dialog and send currency - var sendtoaddrvalues = {"method":"sendtoaddress","params":[confirm_sendto_address,confirm_send_amount,"EasyDEX","EasyDEXTransaction"]}; + var sendtoaddrvalues = {"coin": confirm_coinname_to_send,"method":"sendtoaddress","params":[confirm_sendto_address,confirm_send_amount,"EasyDEX","EasyDEXTransaction"]}; console.log(sendtoaddrvalues); $.ajax({ type: 'POST',