Skip to content

Commit 630a911

Browse files
author
Booyoun-Kim
committed
Support Kava-2. Used the same version as CosmosJS.
1 parent 847fef9 commit 630a911

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func signInHandler(w http.ResponseWriter, r *http.Request) {
9696
}
9797

9898
func sessionInHandler(w http.ResponseWriter, r *http.Request) {
99-
// HTML 폼 전송 처리
99+
// HTML Form
100100
importForm := ImportForm{
101101
Account: r.FormValue("account"),
102102
Client: r.FormValue("client"),

www/js/bundle.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
case "iaa":
1111
chainId2 = "irishub";
1212
break;
13+
case "kava":
14+
chainId2 = "kava-2";
15+
break;
1316
}
1417

1518
const cosmos = cosmosjs.network(window.lcd, chainId2);
@@ -26,6 +29,8 @@
2629
prefix = "cosmos";
2730
} else if (chainId2.indexOf("iris") != -1) {
2831
prefix = "iaa";
32+
} else if (chainId2.indexOf("kava") != -1) {
33+
prefix = "kava";
2934
}
3035

3136
const cosmos = cosmosjs.network(window.lcd, chainId2);

www/transaction.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ <h2>Please enter your PIN.</h2>
109109
case "iris-atto":
110110
decimalPlace = 0.000000000000000001;
111111
break;
112+
case "ukava":
113+
decimalPlace = 0.000001;
114+
break;
112115
}
113116
return decimalPlace;
114117
}
@@ -122,6 +125,9 @@ <h2>Please enter your PIN.</h2>
122125
case "iris-atto":
123126
symbol = "IRIS";
124127
break;
128+
case "ukava":
129+
symbol = "KAVA";
130+
break;
125131
}
126132
return symbol;
127133
}

0 commit comments

Comments
 (0)