Skip to content

Commit

Permalink
feat(statics): remove test on addressCoin
Browse files Browse the repository at this point in the history
TICKET: PX-3568

TICKET: PX-3568
  • Loading branch information
subavicky committed Apr 12, 2024
1 parent 32ccf68 commit c5356b9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions modules/bitgo/test/v2/unit/coins/ofcToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ describe('OFC:', function () {
ofcCoin.getChain().should.equal(tokenMain);
ofcCoin.getFullName().should.equal('Chainlink Token');
ofcCoin.getBaseFactor().should.equal(PRECISION_18);
ofcCoin.addressCoin.should.equal('arbeth');
});
});
describe('for test network', function () {
Expand All @@ -302,7 +301,6 @@ describe('OFC:', function () {
ofcCoin.getChain().should.equal(tokenTest);
ofcCoin.getFullName().should.equal('Arbitrum Test LINK');
ofcCoin.getBaseFactor().should.equal(PRECISION_18);
ofcCoin.addressCoin.should.equal('tarbeth');
});
});
});
Expand Down
3 changes: 0 additions & 3 deletions modules/sdk-core/src/coins/ofcToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ const publicIdRegex = /^[a-f\d]{32}$/i;
export class OfcToken extends Ofc {
public readonly tokenConfig: OfcTokenConfig;

public readonly addressCoin?: string;

constructor(bitgo: BitGoBase, tokenConfig: OfcTokenConfig) {
super(bitgo);
this.tokenConfig = tokenConfig;
this.addressCoin = tokenConfig.addressCoin;
}

get coin() {
Expand Down
2 changes: 0 additions & 2 deletions modules/statics/src/tokenConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export type AlgoTokenConfig = BaseNetworkConfig & {
export type OfcTokenConfig = BaseTokenConfig & {
backingCoin: string;
isFiat: boolean;
addressCoin?: string;
};

export type HbarTokenConfig = BaseNetworkConfig;
Expand Down Expand Up @@ -250,7 +249,6 @@ const formattedOfcCoins = coins.reduce((acc: OfcTokenConfig[], coin) => {
name: coin.fullName,
decimalPlaces: coin.decimalPlaces,
isFiat: coin.kind === CoinKind.FIAT,
addressCoin: coin.addressCoin,
});
}
return acc;
Expand Down

0 comments on commit c5356b9

Please sign in to comment.