From 92040d37a4885ce286a5836030ec3c3707447957 Mon Sep 17 00:00:00 2001
From: BenRey
Date: Tue, 13 Feb 2024 13:54:34 +0100
Subject: [PATCH] Fix cdn massa-web3 link
---
docs/build/massa-web3/massa-web3.mdx | 30 ++++++++++++++--------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/docs/build/massa-web3/massa-web3.mdx b/docs/build/massa-web3/massa-web3.mdx
index a316bc3f9..6eef48371 100644
--- a/docs/build/massa-web3/massa-web3.mdx
+++ b/docs/build/massa-web3/massa-web3.mdx
@@ -55,16 +55,14 @@ If you want to use the library in a vanilla javascript project, please add the f
```html
```
-whereby the x.x.x is one of the available released versions under [Massa-web3's releases page](https://github.com/massalabs/massa-web3/releases):
-
In your code, once the script is fully loaded, just use window.massa to access all massa-web3 exports.
```ts
-
+console.log("Massa Web3 ", window.massa);
```
## Initialization
@@ -118,18 +116,19 @@ You can easily initialize a client instance using the ClientFactory class:
```typescript
- const baseAccount: IAccount = await WalletClient.getAccountFromSecretKey(
- privateKey
- );
- const chainId = CHAIN_ID.MainNet;
-
- const testnetClient: Client = await ClientFactory.createDefaultClient(
- DefaultProviderUrls.MAINNET,
- chainId,
- true, // retry failed requests
- baseAccount // optional parameter
- );
+const baseAccount: IAccount = await WalletClient.getAccountFromSecretKey(
+ privateKey
+);
+const chainId = CHAIN_ID.MainNet;
+
+const testnetClient: Client = await ClientFactory.createDefaultClient(
+ DefaultProviderUrls.MAINNET,
+ chainId,
+ true, // retry failed requests
+ baseAccount // optional parameter
+);
```
+
@@ -147,6 +146,7 @@ const testnetClient: Client = await ClientFactory.createDefaultClient(
baseAccount // optional parameter
);
```
+