Skip to content

Commit

Permalink
Merge pull request #777 from BitGo/BG-22435-Make-CELO-not-a-token
Browse files Browse the repository at this point in the history
Make CELO not a "token"
  • Loading branch information
marktoda authored Jun 26, 2020
2 parents ea7d699 + 9a131f1 commit c12cb6b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions modules/statics/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export class AccountCoinToken extends AccountCoin {
constructor(options: AccountConstructorOptions) {
super({
...options,
isToken: true,
});
}
}
Expand Down Expand Up @@ -101,7 +100,15 @@ export class Erc20Coin extends ContractAddressDefinedToken {}
/**
* Some blockchains have native coins which also support the ERC20 interface such as CGLD.
*/
export class Erc20CompatibleAccountCoin extends ContractAddressDefinedToken {}
export class Erc20CompatibleAccountCoin extends ContractAddressDefinedToken {
constructor(options: Erc20ConstructorOptions) {
super({
...options,
// These coins should not be classified as tokens as they are not children of other coins
isToken: false,
});
}
}

/**
* The CELO blockchain supports tokens of the ERC20 standard similar to ETH ERC20 tokens.
Expand Down Expand Up @@ -280,7 +287,7 @@ export function erc20CompatibleAccountCoin(
features,
decimalPlaces,
asset,
isToken: true,
isToken: false,
primaryKeyCurve,
})
);
Expand Down

0 comments on commit c12cb6b

Please sign in to comment.