Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ekenigs committed Jul 3, 2024
1 parent d7c135a commit 3426d25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions packages/config/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1693,15 +1693,13 @@ export const peaqEvm = new EvmParachain({
address: '0xFFFfFfFf000000000000000000000000000003ea',
decimals: 0, // todo
ids: {
id: '0xFFFfFfFf000000000000000000000000000003ea',
minId: 1002,
},
}),
ChainAsset.fromAsset(wbtc, {
address: '0xfffFFFFF000000000000000000000000000003eb',
decimals: 0, // todo
ids: {
id: '0xfffFFFFF000000000000000000000000000003eb',
minId: 1003,
},
}),
Expand Down
9 changes: 4 additions & 5 deletions packages/types/src/asset/ChainAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class ChainAsset extends Asset {

readonly min?: bigint;

readonly #symbol?: string;
readonly symbol?: string;

constructor({
address,
Expand All @@ -47,7 +47,7 @@ export class ChainAsset extends Asset {
this.decimals = decimals;
this.ids = ids;
this.min = min ? toBigInt(min, decimals) : undefined;
this.#symbol = symbol;
this.symbol = symbol;
}

static fromAsset(
Expand All @@ -63,13 +63,12 @@ export class ChainAsset extends Asset {
copyWith(params: Partial<ChainAssetConstructorParams>): ChainAsset {
return new ChainAsset({
...this,
symbol: this.#symbol,
...params,
});
}

get symbol(): string {
return this.#symbol || this.originSymbol;
getSymbol(): string {
return this.symbol || this.originSymbol;
}

getAssetId(): ChainAssetId {
Expand Down

0 comments on commit 3426d25

Please sign in to comment.