diff --git a/src/utils/Assets.ts b/src/utils/Assets.ts index 04d7cc1c..a0bfab45 100644 --- a/src/utils/Assets.ts +++ b/src/utils/Assets.ts @@ -75,7 +75,7 @@ export function getOceanArtifactsAdressesByChainId(chain: number): any { return null } -async function calculateTemplateIndex( +export async function calculateTemplateIndex( chainID: number, template: string | number ): Promise { diff --git a/test/unit/AssetUtils.ts b/test/unit/AssetUtils.ts deleted file mode 100644 index 38c173f1..00000000 --- a/test/unit/AssetUtils.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { assert } from 'chai' -import { KNOWN_CONFIDENTIAL_EVMS } from '../../src/config' -import { isConfidentialEVM } from '../../src/utils' - -describe('Asste utils (createAsset)', () => { - it('should check if confidential EVM', async () => { - for (const name of KNOWN_CONFIDENTIAL_EVMS.names) { - assert( - isConfidentialEVM(name) === true, - `Network: "${name}" is not a confidental EVM` - ) - } - for (const chain of KNOWN_CONFIDENTIAL_EVMS.chainIds) { - assert( - isConfidentialEVM(chain) === true, - `Chain Id: "${chain}" is not a confidental EVM` - ) - } - - // optimism sepolia - // 11155420 - assert( - isConfidentialEVM(11155420) === false, - `Chain Id: "11155420" is wrongly considered a confidental EVM` - ) - }) -})