fixed error in rupee token balance api url

This commit is contained in:
Abhishek Sinha 2020-07-25 14:19:29 +05:30
parent eca87e1107
commit 3b93e116b3

View File

@ -11630,9 +11630,9 @@
-----------------------------------------------------------------------------------> ----------------------------------------------------------------------------------->
<script> <script>
(function() { //(function() {
let localbitcoinplusplus = {}; let localbitcoinplusplus = {};
function BitBang() { //function BitBang() {
//SECTION: INITIALIZATION //SECTION: INITIALIZATION
localbitcoinplusplus = { localbitcoinplusplus = {
@ -11660,8 +11660,8 @@
enumerable: false enumerable: false
}); });
const ENVR = 'LIVE'; // LIVE, TEST const ENVR = 'TEST'; // LIVE, TEST
const WS = 'wss'; const WS = 'ws';
const DBName = "localbitcoinDBUser"; const DBName = "localbitcoinDBUser";
if(DBName !== "localbitcoinDBUser") { if(DBName !== "localbitcoinDBUser") {
@ -16962,7 +16962,8 @@
supernode_token_balance_url = localbitcoinplusplus.server.flo_api_testnet; supernode_token_balance_url = localbitcoinplusplus.server.flo_api_testnet;
} }
const supernode_token_balance = await helper_functions.ajaxGet(supernode_token_balance_url); const supernode_token_balance = await helper_functions
.ajaxGet(`${supernode_token_balance_url}/api/v1.0/getFloAddressBalance?floAddress=${localbitcoinplusplus.wallets.my_local_flo_address}`);
if(typeof supernode_token_balance!=="object" if(typeof supernode_token_balance!=="object"
|| typeof supernode_token_balance.floAddressBalances !== "object" || typeof supernode_token_balance.floAddressBalances !== "object"
|| supernode_token_balance.floAddressBalances[Object.keys(supernode_token_balance.floAddressBalances)] || supernode_token_balance.floAddressBalances[Object.keys(supernode_token_balance.floAddressBalances)]
@ -17037,6 +17038,7 @@
withdraw_amount: withdrawing_cash_amount, withdraw_amount: withdrawing_cash_amount,
currency: params.currency, currency: params.currency,
receivinAddress: encoded_bank_details, receivinAddress: encoded_bank_details,
receiver_flo_address: params.trader_flo_address,
cashier_pubKey: getAPaymentHandler, cashier_pubKey: getAPaymentHandler,
status: 1 // withdraw request called status: 1 // withdraw request called
}; };
@ -17140,10 +17142,6 @@
); );
// return back the response to client // return back the response to client
withdraw_request_db_object_res.receiver_flo_address =
params.trader_flo_address;
withdraw_request_db_object_res.trader_flo_address =
params.trader_flo_address;
RM_RPC.send_rpc RM_RPC.send_rpc
.call( .call(
this, this,
@ -18726,7 +18724,8 @@
supernode_token_balance_url = localbitcoinplusplus.server.flo_api_testnet; supernode_token_balance_url = localbitcoinplusplus.server.flo_api_testnet;
} }
const supernode_token_balance = await helper_functions.ajaxGet(supernode_token_balance_url); const supernode_token_balance = await helper_functions
.ajaxGet(`${supernode_token_balance_url}/api/v1.0/getFloAddressBalance?floAddress=${localbitcoinplusplus.wallets.my_local_flo_address}`);
if(typeof supernode_token_balance!=="object" if(typeof supernode_token_balance!=="object"
|| typeof supernode_token_balance.floAddressBalances !== "object" || typeof supernode_token_balance.floAddressBalances !== "object"
|| Object.keys(supernode_token_balance.floAddressBalances) || Object.keys(supernode_token_balance.floAddressBalances)
@ -18792,6 +18791,7 @@
withdraw_amount: withdrawing_cash_amount, withdraw_amount: withdrawing_cash_amount,
currency: params.currency, currency: params.currency,
receivinAddress: encoded_bank_details, receivinAddress: encoded_bank_details,
receiver_flo_address: params.trader_flo_address,
cashier_pubKey: getAPaymentHandler, cashier_pubKey: getAPaymentHandler,
status: 1 // withdraw request called status: 1 // withdraw request called
}; };
@ -18904,10 +18904,6 @@
); );
// return back the response to client // return back the response to client
withdraw_request_db_object_res.receiver_flo_address =
params.trader_flo_address;
withdraw_request_db_object_res.trader_flo_address =
params.trader_flo_address;
RM_RPC.send_rpc RM_RPC.send_rpc
.call( .call(
this, this,
@ -23638,6 +23634,7 @@
if ( if (
typeof res_obj.params == "object" && typeof res_obj.params == "object" &&
typeof res_obj.params[0] == "object" typeof res_obj.params[0] == "object"
&& res_obj.params[0].trader_flo_address==localbitcoinplusplus.wallets.my_local_flo_address
) { ) {
if ( if (
RM_WALLET.verify( RM_WALLET.verify(
@ -25376,6 +25373,7 @@
if ( if (
typeof res_obj.params == "object" && typeof res_obj.params == "object" &&
typeof res_obj.params[0] == "object" typeof res_obj.params[0] == "object"
&& res_obj.params[0].trader_flo_address==localbitcoinplusplus.wallets.my_local_flo_address
) { ) {
if ( if (
res_obj.params[0].trader_flo_address !== res_obj.params[0].trader_flo_address !==
@ -31398,9 +31396,9 @@
} }
rawFile.send(null); rawFile.send(null);
} }
} // }
return BitBang(); // return BitBang();
})() //})()
</script> </script>
</body> </body>