Commit aedf0226 authored by dev0tion's avatar dev0tion

Remove coinType parameter for wallet info

parent d13953ad
export class WalletInfo { export class WalletInfo {
constructor(walletName: string, coinType: number) { constructor(walletName: string) {
this.walletName = walletName; this.walletName = walletName;
this.coinType = coinType;
} }
public walletName: string; public walletName: string;
public coinType: number;
} }
...@@ -29,7 +29,7 @@ export class ReceiveComponent { ...@@ -29,7 +29,7 @@ export class ReceiveComponent {
} }
private getUnusedReceiveAddresses() { private getUnusedReceiveAddresses() {
let walletInfo = new WalletInfo(this.globalService.getWalletName(), this.globalService.getCoinType()) let walletInfo = new WalletInfo(this.globalService.getWalletName())
this.apiService.getUnusedReceiveAddress(walletInfo) this.apiService.getUnusedReceiveAddress(walletInfo)
.subscribe( .subscribe(
response => { response => {
......
...@@ -32,8 +32,8 @@ export class StatusBarComponent implements OnInit { ...@@ -32,8 +32,8 @@ export class StatusBarComponent implements OnInit {
this.cancelSubscriptions(); this.cancelSubscriptions();
} }
getGeneralWalletInfo() { private getGeneralWalletInfo() {
let walletInfo = new WalletInfo(this.globalService.getWalletName(), this.globalService.getCoinType()) let walletInfo = new WalletInfo(this.globalService.getWalletName())
this.generalWalletInfoSubscription = this.apiService.getGeneralInfo(walletInfo) this.generalWalletInfoSubscription = this.apiService.getGeneralInfo(walletInfo)
.subscribe( .subscribe(
response => { 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