Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use ipv4 by default #237

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests-sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
node-version: [14, 16]
node-version: [16, 18, 20]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions packages/js/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import {Gas, NEAR} from 'near-units';
import {NamedAccount, KeyPair, ClientConfig, KeyStore, BN} from './types';

// Fix for node > v17
import { setDefaultResultOrder } from 'dns';

Check failure on line 12 in packages/js/src/utils.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected 1 empty line after import statement not followed by another import.

Check failure on line 12 in packages/js/src/utils.ts

View workflow job for this annotation

GitHub Actions / eslint

`dns` import should occur before import of `near-api-js`

Check failure on line 12 in packages/js/src/utils.ts

View workflow job for this annotation

GitHub Actions / eslint

There should be no space after '{'.

Check failure on line 12 in packages/js/src/utils.ts

View workflow job for this annotation

GitHub Actions / eslint

There should be no space before '}'.
setDefaultResultOrder('ipv4first');

Check failure on line 13 in packages/js/src/utils.ts

View workflow job for this annotation

GitHub Actions / eslint

Unsafe call of an `any` typed value.

export const ONE_NEAR = NEAR.parse('1N');

export function toYocto(amount: string): string {
Expand Down
Loading