Skip to content

Commit

Permalink
refactor: move checkForeignAssets to existing action
Browse files Browse the repository at this point in the history
  • Loading branch information
anondev2323 committed Oct 13, 2023
1 parent 176f8f1 commit e19c064
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
node-version: '18.x'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm test
- run: cd core/tokenRegistry && npx ts-node src/scripts/checkForeignAssetsConfig.ts
24 changes: 0 additions & 24 deletions .github/workflows/checkForeignAssetsConfig.yml

This file was deleted.

6 changes: 3 additions & 3 deletions connect/src/wormhole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export class Wormhole {
*/
async getDecimals(
chain: ChainName,
token: NativeAddress<any> | UniversalAddress | "native",
token: NativeAddress<PlatformName> | UniversalAddress | "native",
): Promise<bigint> {
const ctx = this.getChain(chain);
return await ctx.getDecimals(token);
Expand All @@ -275,7 +275,7 @@ export class Wormhole {
*/
async normalizeAmount(
chain: ChainName,
token: UniversalAddress | NativeAddress<any> | "native",
token: UniversalAddress | NativeAddress<PlatformName> | "native",
amount: number | string,
): Promise<bigint> {
const ctx = this.getChain(chain);
Expand All @@ -293,7 +293,7 @@ export class Wormhole {
*/
async getBalance(
chain: ChainName,
token: NativeAddress<any> | UniversalAddress | "native",
token: NativeAddress<PlatformName> | UniversalAddress | "native",
walletAddress: string,
): Promise<bigint | null> {
const ctx = this.getChain(chain);
Expand Down

0 comments on commit e19c064

Please sign in to comment.