diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa184d188..f6b5dea07 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,4 +11,5 @@ jobs: node-version: '18.x' - run: npm ci - run: npm run build --if-present - - run: npm test \ No newline at end of file + - run: npm test + - run: cd core/tokenRegistry && npx ts-node src/scripts/checkForeignAssetsConfig.ts \ No newline at end of file diff --git a/.github/workflows/checkForeignAssetsConfig.yml b/.github/workflows/checkForeignAssetsConfig.yml deleted file mode 100644 index 8b2ca2136..000000000 --- a/.github/workflows/checkForeignAssetsConfig.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Check tokens list - -on: - pull_request: - push: - branches: - - development - - staging - - production - - mainnet - -jobs: - check-token-list: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 20 - cache: "npm" - - run: npm ci - - run: npm run build --if-present - - run: cd core/tokenRegistry && npx ts-node src/scripts/checkForeignAssetsConfig.ts diff --git a/connect/src/wormhole.ts b/connect/src/wormhole.ts index 669a46bf4..c6e139b15 100644 --- a/connect/src/wormhole.ts +++ b/connect/src/wormhole.ts @@ -259,7 +259,7 @@ export class Wormhole { */ async getDecimals( chain: ChainName, - token: NativeAddress | UniversalAddress | "native", + token: NativeAddress | UniversalAddress | "native", ): Promise { const ctx = this.getChain(chain); return await ctx.getDecimals(token); @@ -275,7 +275,7 @@ export class Wormhole { */ async normalizeAmount( chain: ChainName, - token: UniversalAddress | NativeAddress | "native", + token: UniversalAddress | NativeAddress | "native", amount: number | string, ): Promise { const ctx = this.getChain(chain); @@ -293,7 +293,7 @@ export class Wormhole { */ async getBalance( chain: ChainName, - token: NativeAddress | UniversalAddress | "native", + token: NativeAddress | UniversalAddress | "native", walletAddress: string, ): Promise { const ctx = this.getChain(chain);