Skip to content

Commit

Permalink
docs: adjusting snippets again (#3560)
Browse files Browse the repository at this point in the history
Adjusting snippets
  • Loading branch information
arboleya authored Jan 7, 2025
1 parent 4ee1e15 commit e83b237
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const NETWORK_URL = 'https://mainnet.fuel.network/v1/graphql';

const provider = new Provider(NETWORK_URL);

const chainId = provider.getChainId();
const gasConfig = provider.getGasConfig();
const baseAssetId = provider.getBaseAssetId();
const chainId = await provider.getChainId();
const gasConfig = await provider.getGasConfig();
const baseAssetId = await provider.getBaseAssetId();

console.log({ chainId, gasConfig, baseAssetId });
```
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/guide/getting-started/cdn-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
const provider = new Provider(
"https://mainnet.fuel.network/v1/graphql",
);
const { name } = provider.getChain();
const { name } = await provider.getChain();
console.log(name);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const NETWORK_URL = 'https://mainnet.fuel.network/v1/graphql';

const provider = new Provider(NETWORK_URL);

const baseAssetId = provider.getBaseAssetId();
const chainId = provider.getChainId();
const gasConfig = provider.getGasConfig();
const baseAssetId = await provider.getBaseAssetId();
const chainId = await provider.getChainId();
const gasConfig = await provider.getGasConfig();

console.log('chainId', chainId);
console.log('baseAssetId', baseAssetId);
Expand Down

0 comments on commit e83b237

Please sign in to comment.