Skip to content

Commit 7befc20

Browse files
Merge pull request #8210 from BitGo/manas/WIN-8460-set-default-test-eth-network
fix: add default network for testnet eth tokens
2 parents e1e0ee0 + 7a1a023 commit 7befc20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/statics/src/coins/generateERC20.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { erc20, erc20Token, terc20 } from '../account';
22
import { BaseCoin, CoinFeature, UnderlyingAsset } from '../base';
3-
import { AccountNetwork, EthereumNetwork } from '../networks';
3+
import { AccountNetwork, EthereumNetwork, Networks } from '../networks';
44
import { ofcerc20, tofcerc20 } from '../ofc';
55

66
// --- Shared config interfaces ---
@@ -89,7 +89,7 @@ export function generateTestErc20Coin(config: Erc20CoinConfig): Readonly<BaseCoi
8989
config.features,
9090
config.prefix,
9191
config.suffix,
92-
config.network
92+
config.network ?? Networks.test.hoodi //default testnet eth network for new tokens
9393
);
9494

9595
if (config.skipOfc) return [onChain];

0 commit comments

Comments
 (0)