Skip to content

Commit

Permalink
Update to ethers v6
Browse files Browse the repository at this point in the history
  • Loading branch information
orenyomtov committed Nov 12, 2024
1 parent c8f6618 commit 7cfaa3d
Show file tree
Hide file tree
Showing 16 changed files with 486 additions and 1,370 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 7cfaa3d

Please sign in to comment.