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

docs: migrate other half of the wallet snippets #3365

Merged
merged 26 commits into from
Nov 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
161516f
docs: convert old wallet snippets
maschad Oct 29, 2024
7dd6566
docs: split snippets
maschad Oct 29, 2024
a5d5354
docs: update snippets
maschad Oct 29, 2024
0c93303
Merge branch 'master' into mc/docs/update-snippets-wallet
maschad Oct 29, 2024
11d0bde
docs: ensure test is node only
maschad Oct 29, 2024
b96dbc1
docs: add node group at the bottom
maschad Oct 29, 2024
672a4f8
remove old import
maschad Oct 30, 2024
a67635a
remove old import
maschad Oct 30, 2024
781d4f3
remove space
maschad Oct 30, 2024
5ff9c3e
adjust imports in snippet
maschad Oct 30, 2024
c3cfbd9
remove old import
maschad Oct 30, 2024
4087812
Merge branch 'master' into mc/docs/update-snippets-wallet
maschad Oct 30, 2024
44de64e
docs: remove old import
maschad Oct 30, 2024
787cb6b
docs: update snippet test suffix
maschad Oct 30, 2024
b887173
Merge branch 'master' into mc/docs/update-snippets-wallet
maschad Nov 6, 2024
715481c
docs: move snippets into wallet guide
maschad Nov 6, 2024
8c92aff
docs: update snippets comment
maschad Nov 8, 2024
07cefcf
Merge branch 'master' into mc/docs/update-snippets-wallet
maschad Nov 8, 2024
5e402a2
Merge branch 'master' into mc/docs/update-snippets-wallet
maschad Nov 11, 2024
1a71489
docs: remove unnecessary full examples
maschad Nov 11, 2024
b139ab5
linting fixes
maschad Nov 11, 2024
6d5cc59
docs: add try/catch to snippet
maschad Nov 11, 2024
c28b6b2
docs: add defaultConnectors + remove unused snippet
maschad Nov 11, 2024
f2c8ed7
dep: patch temp issue with knip
maschad Nov 11, 2024
6a918c9
docs: update to use mocked deps
maschad Nov 12, 2024
23b81fb
Merge branch 'master' into mc/docs/update-snippets-wallet
petertonysmith94 Nov 12, 2024
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
Prev Previous commit
Next Next commit
docs: update snippet test suffix
  • Loading branch information
maschad committed Oct 30, 2024
commit 787cb6b97083bbf1ef0d379dc31c3cde325055b7
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import { Provider, Wallet } from 'fuels';

import { LOCAL_NETWORK_URL } from '../env';

/**
* @group node
*/
const provider = await Provider.create(LOCAL_NETWORK_URL);

const newJsonWallet = await Wallet.generate({
Expand All @@ -26,4 +23,9 @@ const decryptedWallet = await Wallet.fromEncryptedJson(
// Use the decrypted wallet
const myBalance = await decryptedWallet.getBalance();
// #endregion encrypting-and-decrypting-json-wallets-2

/**
* @group node
*/

console.log('myBalance', myBalance);
Loading