From 14e38dcc8e03ff21c98745f2414c8f5550cbe95f Mon Sep 17 00:00:00 2001 From: Daniel Bate Date: Mon, 11 Dec 2023 13:47:31 -0300 Subject: [PATCH] docs: fix invalid `context` imports in `doc-examples` (#1493) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Revert "feat: add `Predicate.getTransferTxId` helper (#1467)" This reverts commit 70233c1e579e607bdc2714b9b8039ea0eaac40a9. * docs: fix context imports in docs examples * chore: changeset --------- Co-authored-by: Anderson Arboleya Co-authored-by: Sérgio Torres <30977845+Torres-ssf@users.noreply.github.com> --- .changeset/unlucky-terms-glow.md | 2 ++ packages/fuel-gauge/src/doc-examples.test.ts | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .changeset/unlucky-terms-glow.md diff --git a/.changeset/unlucky-terms-glow.md b/.changeset/unlucky-terms-glow.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/unlucky-terms-glow.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/fuel-gauge/src/doc-examples.test.ts b/packages/fuel-gauge/src/doc-examples.test.ts index 02fbae67059..abfaaee9483 100644 --- a/packages/fuel-gauge/src/doc-examples.test.ts +++ b/packages/fuel-gauge/src/doc-examples.test.ts @@ -217,7 +217,7 @@ describe('Doc Examples', () => { it('can create wallets', async () => { // #region wallet-setup - // #context import { Provider, bn } from 'fuels'; + // #context import { Provider, bn, FUEL_NETWORK_URL } from 'fuels'; // #context import { generateTestWallet } from '@fuel-ts/wallet/test-utils'; const provider = await Provider.create(FUEL_NETWORK_URL); const assetIdA = '0x0101010101010101010101010101010101010101010101010101010101010101'; @@ -274,7 +274,7 @@ describe('Doc Examples', () => { it('can connect to a local provider', async () => { // #region provider-local - // #context import { Provider, WalletUnlocked } from 'fuels'; + // #context import { Provider, WalletUnlocked, FUEL_NETWORK_URL } from 'fuels'; const localProvider = await Provider.create(FUEL_NETWORK_URL); // Setup a private key const PRIVATE_KEY = 'a1447cd75accc6b71a976fd3401a1f6ce318d27ba660b0315ee6ac347bf39568'; @@ -290,7 +290,7 @@ describe('Doc Examples', () => { it('can query address with wallets', async () => { // #region wallet-query - // #context import { Provider } from 'fuels'; + // #context import { Provider, FUEL_NETWORK_URL } from 'fuels'; // #context import { generateTestWallet } from '@fuel-ts/wallet/test-utils'; const provider = await Provider.create(FUEL_NETWORK_URL); const assetIdA = '0x0101010101010101010101010101010101010101010101010101010101010101'; @@ -345,7 +345,7 @@ describe('Doc Examples', () => { it('can create a predicate', async () => { // #region predicate-basic - // #context import { Predicate, arrayify } from 'fuels'; + // #context import { Predicate, arrayify, FUEL_NETWORK_URL } from 'fuels'; const provider = await Provider.create(FUEL_NETWORK_URL); const predicate = new Predicate(testPredicateTrue, provider);