From beae97973c442c9e6771e0e6cfc69328c9c9eecc Mon Sep 17 00:00:00 2001 From: Muhammad-Altabba <24407834+Muhammad-Altabba@users.noreply.github.com> Date: Mon, 20 Nov 2023 13:24:43 +0100 Subject: [PATCH] tiny edit at ethers.md --- docs/docs/guides/basics/sign_and_send_tx/wallet_of_eth_node.md | 1 - docs/docs/guides/migration_from_other_libs/ethers.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/docs/guides/basics/sign_and_send_tx/wallet_of_eth_node.md b/docs/docs/guides/basics/sign_and_send_tx/wallet_of_eth_node.md index fe1b1c967b6..7a1905b4bc4 100644 --- a/docs/docs/guides/basics/sign_and_send_tx/wallet_of_eth_node.md +++ b/docs/docs/guides/basics/sign_and_send_tx/wallet_of_eth_node.md @@ -169,7 +169,6 @@ import { Web3 } from 'web3'; const web3 = new Web3(/* PROVIDER*/); // Second step: add an account to the Ethereum node and unlock it -// IMPORTANT: never unlock an account on the mainnet. Use this only with your local dev node. const account = { privateKey: '0xb45b02f408a0dd0996aab2b55a54f4ed7735f82b133c0786a9ff372ffaaf11bd', address: '0xe4beef667408b99053dc147ed19592ada0d77f59', diff --git a/docs/docs/guides/migration_from_other_libs/ethers.md b/docs/docs/guides/migration_from_other_libs/ethers.md index 243b27f6118..daa33c58af3 100644 --- a/docs/docs/guides/migration_from_other_libs/ethers.md +++ b/docs/docs/guides/migration_from_other_libs/ethers.md @@ -4,7 +4,7 @@ sidebar_label: 'Migration from ethers.js' title: 'Migration from ethers.js' --- -Follow this guide, if you're currently using the ethers.js library to interact with the Ethereum blockchain and want to migrate to web3.js. +Follow this guide, if you're currently using the ethers.js library to interact with the Ethereum blockchain and want to migrate to web3.js. This guide is for ethers v5 and v6. And, if there are differences, code for both would be provided. And, if you find something missing, or worth adding, feel free to open a PR, please. However, migrating from a library to another would usually need careful changes. But, ethers.js have lots of similarities with web3.js and migration would usually be easy and straightforward. However, you still need to check your code for possible tweaks as needed.