Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions modules/bitgo/src/v2/coinFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,15 @@ export function getCoinConstructor(coinName: string): CoinConstructor | undefine
}
}

// TODO: add IP token here and test changes (Ticket: https://bitgoinc.atlassian.net/browse/WIN-7835)
const ethLikeChainToTestnetMap: Record<string, string> = {};
Comment thread
ArunBala-Bitgo marked this conversation as resolved.
export function getTokenConstructor(tokenConfig: TokenConfig): CoinConstructor | undefined {
if (tokenConfig.coin in ethLikeChainToTestnetMap) {
return EthLikeErc20Token.createTokenConstructor(tokenConfig as EthLikeTokenConfig, {
Comment thread
ArunBala-Bitgo marked this conversation as resolved.
Mainnet: tokenConfig.coin,
Testnet: ethLikeChainToTestnetMap[tokenConfig.coin],
});
}
switch (tokenConfig.coin) {
case 'eth':
case 'hteth':
Expand Down
Loading