Skip to content

Commit

Permalink
docs: fix invalid context imports in doc-examples (#1493)
Browse files Browse the repository at this point in the history
* Revert "feat: add `Predicate.getTransferTxId` helper (#1467)"

This reverts commit 70233c1.

* docs: fix context imports in docs examples

* chore: changeset

---------

Co-authored-by: Anderson Arboleya <[email protected]>
Co-authored-by: Sérgio Torres <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2023
1 parent 280facf commit 14e38dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .changeset/unlucky-terms-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
8 changes: 4 additions & 4 deletions packages/fuel-gauge/src/doc-examples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 14e38dc

Please sign in to comment.