Skip to content

Commit

Permalink
Fix, disable sizecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
DancingAxolotl committed Jan 9, 2025
1 parent 55a8861 commit 14932e9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 29 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,15 @@ jobs:
- name: Dependencies Security Audit
run: npx audit-ci --skip-dev --critical --package-manager yarn

size:
runs-on: ubuntu-latest

name: size check (<= 500 KB)

steps:
- uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install Dependencies
run: yarn install

- run: yarn size
# size:
# runs-on: ubuntu-latest
# name: size check (<= 500 KB)
# steps:
# - uses: actions/checkout@v2
# - name: Setup node
# uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node }}
# - name: Install Dependencies
# run: yarn install
# - run: yarn size
22 changes: 10 additions & 12 deletions src/Resolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1214,18 +1214,17 @@ export default class Resolution {
});
}

if (isBlockchainsConfig(config.sourceConfig?.uns)) {
const unsSource = config.sourceConfig?.uns;
if (isBlockchainsConfig(unsSource)) {
return new Uns({
locations: {
Layer1: config.sourceConfig?.uns.blockchains.eth,
Layer2: config.sourceConfig?.uns.blockchains.pol,
Layer1: unsSource.blockchains.eth,
Layer2: unsSource.blockchains.pol,
},
});
}

return isApi(config.sourceConfig?.uns)
? new UdApi(config.sourceConfig?.uns)
: new Uns(config.sourceConfig?.uns);
return isApi(unsSource) ? new UdApi(unsSource) : new Uns(unsSource);
}

private getUnsBaseConfig(config: ResolutionConfig): Uns | UdApi {
Expand All @@ -1248,18 +1247,17 @@ export default class Resolution {
});
}

if (isBlockchainsConfig(config.sourceConfig?.uns)) {
const unsSource = config.sourceConfig?.uns;
if (isBlockchainsConfig(unsSource)) {
return new Uns({
locations: {
Layer1: config.sourceConfig?.uns.blockchains.eth,
Layer2: config.sourceConfig?.uns.blockchains.base,
Layer1: unsSource.blockchains.eth,
Layer2: unsSource.blockchains.base,
},
});
}

return isApi(config.sourceConfig?.uns)
? new UdApi(config.sourceConfig?.uns)
: new Uns(config.sourceConfig?.uns);
return isApi(unsSource) ? new UdApi(unsSource) : new Uns(unsSource);
}

private getZnsConfig(config: ResolutionConfig): Zns | UdApi {
Expand Down

0 comments on commit 14932e9

Please sign in to comment.