Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
feat(profiles): implement Wallet#alias (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Jun 20, 2020
1 parent 7df6ff9 commit 77f192c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions packages/platform-sdk-profiles/src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,8 @@ export class Wallet {
return this.#coin.network().id;
}

public avatar(): string {
const value: string | undefined = this.data().get(WalletSetting.Avatar);

if (value === undefined) {
return this.#avatar;
}

return value;
public alias(): string | undefined {
return this.settings().get(WalletSetting.Alias);
}

public address(): string {
Expand Down Expand Up @@ -135,6 +129,16 @@ export class Wallet {
return BigNumber.make(value);
}

public avatar(): string {
const value: string | undefined = this.data().get(WalletSetting.Avatar);

if (value === undefined) {
return this.#avatar;
}

return value;
}

public data(): DataRepository {
return this.#dataRepository;
}
Expand Down

0 comments on commit 77f192c

Please sign in to comment.