From b209491498738045b4c4d53a63ecb82e11c0b4f8 Mon Sep 17 00:00:00 2001 From: Serhii Volovyk Date: Fri, 11 Nov 2022 16:59:23 +0200 Subject: [PATCH] /lib deleted form imports in tests and examples --- examples/src/standard-nft/my-nft.ts | 4 ++-- examples/src/standard-nft/test-approval-receiver.ts | 4 ++-- examples/src/standard-nft/test-token-receiver.ts | 4 ++-- tests/src/highlevel-promise.js | 2 +- tests/src/public-key.js | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/src/standard-nft/my-nft.ts b/examples/src/standard-nft/my-nft.ts index 430dedfd1..4c31b04b9 100644 --- a/examples/src/standard-nft/my-nft.ts +++ b/examples/src/standard-nft/my-nft.ts @@ -9,7 +9,7 @@ import { NearPromise, PromiseOrValue, view, -} from "near-sdk-js/lib"; +} from "near-sdk-js"; import { NFTContractMetadata, NonFungibleTokenMetadataProvider, @@ -19,7 +19,7 @@ import { IntoStorageKey, Option, } from "near-contract-standards/lib/non_fungible_token/utils"; -import { AccountId } from "near-sdk-js/lib/types"; +import { AccountId } from "near-sdk-js"; import { NonFungibleTokenCore } from "near-contract-standards/lib/non_fungible_token/core"; import { Token, diff --git a/examples/src/standard-nft/test-approval-receiver.ts b/examples/src/standard-nft/test-approval-receiver.ts index db5271002..8c614091e 100644 --- a/examples/src/standard-nft/test-approval-receiver.ts +++ b/examples/src/standard-nft/test-approval-receiver.ts @@ -6,8 +6,8 @@ import { PromiseOrValue, assert, call, -} from "near-sdk-js/lib"; -import { AccountId } from "near-sdk-js/lib/types"; +} from "near-sdk-js"; +import { AccountId } from "near-sdk-js"; import { NonFungibleTokenApprovalReceiver } from "near-contract-standards/lib/non_fungible_token/approval/approval_receiver"; const BASE_GAS = 20_000_000_000_000n; diff --git a/examples/src/standard-nft/test-token-receiver.ts b/examples/src/standard-nft/test-token-receiver.ts index d9df9484b..9d4faf400 100644 --- a/examples/src/standard-nft/test-token-receiver.ts +++ b/examples/src/standard-nft/test-token-receiver.ts @@ -7,8 +7,8 @@ import { NearBindgen, NearPromise, PromiseOrValue, -} from "near-sdk-js/lib"; -import { AccountId } from "near-sdk-js/lib/types"; +} from "near-sdk-js"; +import { AccountId } from "near-sdk-js"; const BASE_GAS = 10_000_000_000_000n; const PROMISE_CALL = 10_000_000_000_000n; diff --git a/tests/src/highlevel-promise.js b/tests/src/highlevel-promise.js index c9bc3800c..0c5b57a8f 100644 --- a/tests/src/highlevel-promise.js +++ b/tests/src/highlevel-promise.js @@ -1,5 +1,5 @@ import { NearBindgen, call, NearPromise, near, bytes } from "near-sdk-js"; -import { PublicKey } from "near-sdk-js/lib/types"; +import { PublicKey } from "near-sdk-js"; function callingData() { return { diff --git a/tests/src/public-key.js b/tests/src/public-key.js index a62a6480a..0f47bde54 100644 --- a/tests/src/public-key.js +++ b/tests/src/public-key.js @@ -1,6 +1,6 @@ import { near, bytes } from "near-sdk-js"; -import { CurveType, PublicKey } from "near-sdk-js/lib/types"; -import { assert } from "near-sdk-js/lib/utils"; +import { CurveType, PublicKey } from "near-sdk-js"; +import { assert } from "near-sdk-js"; function runtime_validate_public_key(prefix, public_key) { let promiseId = near.promiseBatchCreate(prefix + ".pk.test.near");