Skip to content

Commit

Permalink
Update dependencies (including ethers to v6) (#40)
Browse files Browse the repository at this point in the history
* Update to ethers v6

* Updates dependencies
  • Loading branch information
orenyomtov authored Nov 12, 2024
1 parent c8f6618 commit 8828af0
Show file tree
Hide file tree
Showing 17 changed files with 1,173 additions and 1,920 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ const eip1193Provider = new FireblocksWeb3Provider({

## Usage with ethers.js
```sh
npm install ethers@5
npm install ethers
```

```js
import * as ethers from "ethers"

const provider = new ethers.providers.Web3Provider(eip1193Provider);
// const provider = new ethers.BrowserProvider(eip1193Provider); // For ethers v6
const provider = new ethers.BrowserProvider(eip1193Provider);

// Or like this if you're using ethers v5:
// const provider = new ethers.providers.Web3Provider(eip1193Provider);
```

## Usage with web3.js
Expand Down
Loading

0 comments on commit 8828af0

Please sign in to comment.