Skip to content

Commit

Permalink
tiny edit at ethers.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Nov 20, 2023
1 parent 174caf8 commit beae979
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/migration_from_other_libs/ethers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit beae979

Please sign in to comment.