Skip to content

Commit

Permalink
Change CHAIN_ID.MainNet on Localnet client tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Mar 5, 2024
1 parent 7dbb89c commit 6fb371e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/build/massa-web3/massa-web3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ const testnetClient: Client = await ClientFactory.createDefaultClient(
const baseAccount: IAccount = await WalletClient.getAccountFromSecretKey(
privateKey
);
const chainId = CHAIN_ID.Sandbox;

// You must set the `chainId` to match the network your client intends to interact with.
const chainId = CHAIN_ID.MainNet;

const testnetClient: Client = await ClientFactory.createDefaultClient(
DefaultProviderUrls.LOCALNET,
Expand Down

0 comments on commit 6fb371e

Please sign in to comment.