Skip to content

Commit

Permalink
fix: isDefaultAccountExist
Browse files Browse the repository at this point in the history
  • Loading branch information
akastercomcom committed Sep 19, 2023
1 parent 9bb9a86 commit bfe339f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default class AinModule {

isDefaultAccountExist(): boolean {
if (this.getDefaultAccount())
return false;
return true;
return true;
return false;
}

setDefaultAccount(privateKey: string) {
Expand Down Expand Up @@ -52,7 +52,7 @@ export default class AinModule {
}

getAddress() {
this.checkAinInitiated();
this.isDefaultAccountExist();
return this.ain!.wallet.defaultAccount!.address;
}
}

0 comments on commit bfe339f

Please sign in to comment.