From 2b22cd4ede92697a60640df981850e47fda57db4 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 9 Sep 2019 09:46:32 +0200 Subject: [PATCH] Change string response to number in API CALL --- server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.ts b/server.ts index 0e922d0..70d2a4a 100644 --- a/server.ts +++ b/server.ts @@ -133,11 +133,11 @@ try { else if(option == "getblockcount") result= blockDetails.block_height; else if(option == "getdifficulty-randomx") - result = blockDetails.TotalDifficultyRandomx; + result = Number(blockDetails.TotalDifficultyRandomx); else if(option == "getdifficulty-cuckoo") - result = blockDetails.TotalCuckoo; + result = Number(blockDetails.TotalCuckoo); else if(option == "getdifficulty-progpow") - result = blockDetails.TotalDifficultyProgpow; + result = Number(blockDetails.TotalDifficultyProgpow); else if(option == "totalcoins") result = 21000000; else if(option == "getblockhash")