We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 667008e commit d325b85Copy full SHA for d325b85
modules/bitgo/src/v2/coinFactory.ts
@@ -903,7 +903,14 @@ export function getCoinConstructor(coinName: string): CoinConstructor | undefine
903
}
904
905
906
+const ethLikeChainToTestnetMap: Record<string, string> = {};
907
export function getTokenConstructor(tokenConfig: TokenConfig): CoinConstructor | undefined {
908
+ if (tokenConfig.coin in ethLikeChainToTestnetMap) {
909
+ return EthLikeErc20Token.createTokenConstructor(tokenConfig as EthLikeTokenConfig, {
910
+ Mainnet: tokenConfig.coin,
911
+ Testnet: ethLikeChainToTestnetMap[tokenConfig.coin],
912
+ });
913
+ }
914
switch (tokenConfig.coin) {
915
case 'eth':
916
case 'hteth':
0 commit comments