Skip to content

Commit

Permalink
explicitly use ethers v5
Browse files Browse the repository at this point in the history
  • Loading branch information
Leibniz137 committed Feb 22, 2021
1 parent 3a9a9f1 commit 41bc3b0
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 19 deletions.
1 change: 1 addition & 0 deletions frontend/keep-benefits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@testing-library/user-event": "^12.1.10",
"@web3-react/core": "^6.1.9",
"@web3-react/injected-connector": "^6.0.7",
"ethers": "^5.0.31",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-scripts": "4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion frontend/keep-benefits/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function Balance () {
return (
<div>
<p>
Current Account Balance: {balance === null ? 'Error' : balance ? ${ethers.formatEther(balance)}` : ''}
Current Account Balance: {balance === null ? 'Error' : balance ? ${ethers.utils.formatEther(balance)}` : ''}
</p>
</div>
);
Expand Down
Loading

0 comments on commit 41bc3b0

Please sign in to comment.