Commit aedf0226 authored by dev0tion's avatar dev0tion

Remove coinType parameter for wallet info

parent d13953ad
export class WalletInfo {
constructor(walletName: string, coinType: number) {
constructor(walletName: string) {
this.walletName = walletName;
this.coinType = coinType;
}
public walletName: string;
public coinType: number;
}
......@@ -29,7 +29,7 @@ export class ReceiveComponent {
}
private getUnusedReceiveAddresses() {
let walletInfo = new WalletInfo(this.globalService.getWalletName(), this.globalService.getCoinType())
let walletInfo = new WalletInfo(this.globalService.getWalletName())
this.apiService.getUnusedReceiveAddress(walletInfo)
.subscribe(
response => {
......
......@@ -32,8 +32,8 @@ export class StatusBarComponent implements OnInit {
this.cancelSubscriptions();
}
getGeneralWalletInfo() {
let walletInfo = new WalletInfo(this.globalService.getWalletName(), this.globalService.getCoinType())
private getGeneralWalletInfo() {
let walletInfo = new WalletInfo(this.globalService.getWalletName())
this.generalWalletInfoSubscription = this.apiService.getGeneralInfo(walletInfo)
.subscribe(
response => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment