From 9433ee65804aa0be2b452ec8c256dba1b4fccf0a Mon Sep 17 00:00:00 2001 From: Booyoun-Kim Date: Tue, 9 Jun 2020 14:50:52 +0900 Subject: [PATCH] Added Band Protocol --- www/js/bundle.js | 5 +++++ www/transaction.html | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/www/js/bundle.js b/www/js/bundle.js index d13d2ea..4c698f9 100644 --- a/www/js/bundle.js +++ b/www/js/bundle.js @@ -14,6 +14,9 @@ case "kava": chainId2 = "kava-2"; break; + case "band": + chainId2 = "band-wenchang-mainnet"; + break; } const cosmos = cosmosjs.network(window.lcd, chainId2); @@ -32,6 +35,8 @@ prefix = "iaa"; } else if (chainId2.indexOf("kava") != -1) { prefix = "kava"; + } else if (chainId2.indexOf("band") != -1) { + prefix = "band"; } const cosmos = cosmosjs.network(window.lcd, chainId2); diff --git a/www/transaction.html b/www/transaction.html index 5d54684..c60679e 100755 --- a/www/transaction.html +++ b/www/transaction.html @@ -103,14 +103,13 @@

Please enter your PIN.

var decimalPlace = 0; switch (denom) { case "uatom": + case "uband": + case "ukava": decimalPlace = 0.000001; break; case "iris-atto": decimalPlace = 0.000000000000000001; break; - case "ukava": - decimalPlace = 0.000001; - break; } return decimalPlace; } @@ -127,6 +126,9 @@

Please enter your PIN.

case "ukava": symbol = "KAVA"; break; + case "uband": + symbol = "BAND"; + break; } return symbol; }