Default testnet updated

This commit is contained in:
raja.blaze 2019-08-19 11:13:48 +05:30
parent 4c1204d61a
commit d0694e5de3
4 changed files with 12 additions and 4 deletions

View File

@ -13,7 +13,7 @@ export function validationMiddleware<T>(
if(request.headers.network){
Global.network = request.headers.network;
}else{
Global.network = 'Floonet';
Global.network = 'Testnet';
}
validate(
plainToClass(type, {

View File

@ -27,7 +27,11 @@ export class HeaderComponent implements OnInit {
}
public getNetwork(){
if(localStorage.getItem('network') == null){
return "Testnet";
}else{
return localStorage.getItem('network');
}
}
public onChangeNetwork(networkValue){

View File

@ -24,8 +24,12 @@ export class SiteheaderComponent implements OnInit {
}
public getNetwork(){
return localStorage.getItem('network');
}
if(localStorage.getItem('network') == null){
return "Testnet";
}else{
return localStorage.getItem('network');
}
}
public onChangeNetwork(networkValue){
localStorage.setItem('network', networkValue);

View File

@ -45,7 +45,7 @@ export class ChartService {
public getHttpheader(){
var network;
if(localStorage.getItem('network') == null){
network = "Floonet"
network = "Testnet"
}else{
network = localStorage.getItem('network')
}