Skip to content

Commit

Permalink
👘 Update ethers (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
nezouse authored May 17, 2024
1 parent bce5650 commit 5a626b8
Show file tree
Hide file tree
Showing 8 changed files with 360 additions and 483 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
},
"dependencies": {
"@changesets/cli": "^2.14.1",
"ethers": "5.6.9",
"ethers": "5.7.2",
"prettier": "2.1.2"
},
"resolutions": {
"ethers": "5.6.9"
"ethers": "5.7.2"
},
"devDependencies": {
"eslint-plugin-no-only-tests": "^2.6.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"react": "*"
},
"devDependencies": {
"@ethersproject/abi": "5.6.1",
"@ethersproject/abstract-provider": "^5.6.1",
"@ethersproject/providers": "5.6.2",
"@ethersproject/abi": "5.7.0",
"@ethersproject/abstract-provider": "^5.7.0",
"@ethersproject/providers": "5.7.2",
"@swc-node/register": "^1.4.2",
"@testing-library/react-hooks": "^5.0.3",
"@types/chai": "^4.2.14",
Expand All @@ -48,7 +48,7 @@
"chai-as-promised": "^7.1.1",
"eslint": "7.22.0",
"eslint-plugin-react-hooks": "^4.3.0",
"ethers": "5.6.9",
"ethers": "5.7.2",
"ganache": "7.9.0",
"jsdom": "^16.4.0",
"jsdom-global": "^3.0.2",
Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/hooks/useCall.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ describe('useCall', () => {

expect(result.current?.value).to.be.undefined
expect(result.current?.error?.message).to.eq(
`Invalid contract call for method="balanceOf" on contract="${token.address}": invalid address (argument="address", value=123, code=INVALID_ARGUMENT, version=address/5.6.1) (argument="account", value=123, code=INVALID_ARGUMENT, version=abi/5.6.4)`
`Invalid contract call for method="balanceOf" on contract="${token.address}": invalid address (argument="address", value=123, code=INVALID_ARGUMENT, version=address/5.7.0) (argument="account", value=123, code=INVALID_ARGUMENT, version=abi/5.7.0)`
)
})

Expand All @@ -475,7 +475,7 @@ describe('useCall', () => {

expect(result.current?.value).to.be.undefined
expect(result.current?.error?.message).to.eq(
`Invalid contract call for method="balanceOf" on contract="${token.address}": types/values length mismatch (count={"types":1,"values":0}, value={"types":[{"name":"account","type":"address","indexed":null,"components":null,"arrayLength":null,"arrayChildren":null,"baseType":"address","_isParamType":true}],"values":[]}, code=INVALID_ARGUMENT, version=abi/5.6.4)`
`Invalid contract call for method="balanceOf" on contract="${token.address}": types/values length mismatch (count={"types":1,"values":0}, value={"types":[{"name":"account","type":"address","indexed":null,"components":null,"arrayLength":null,"arrayChildren":null,"baseType":"address","_isParamType":true}],"values":[]}, code=INVALID_ARGUMENT, version=abi/5.7.0)`
)
})

Expand All @@ -496,7 +496,7 @@ describe('useCall', () => {

expect(result.current?.value).to.be.undefined
expect(result.current?.error?.message).to.eq(
`Invalid contract call for method="balanceOf" on contract="${token.address}": types/values length mismatch (count={"types":1,"values":2}, value={"types":[{"name":"account","type":"address","indexed":null,"components":null,"arrayLength":null,"arrayChildren":null,"baseType":"address","_isParamType":true}],"values":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000"]}, code=INVALID_ARGUMENT, version=abi/5.6.4)`
`Invalid contract call for method="balanceOf" on contract="${token.address}": types/values length mismatch (count={"types":1,"values":2}, value={"types":[{"name":"account","type":"address","indexed":null,"components":null,"arrayLength":null,"arrayChildren":null,"baseType":"address","_isParamType":true}],"values":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000"]}, code=INVALID_ARGUMENT, version=abi/5.7.0)`
)
})
})
Expand Down Expand Up @@ -538,7 +538,7 @@ describe('useCall', () => {

expect(result.current[2]?.value).to.be.undefined
expect(result.current[2]?.error?.message).to.eq(
`Invalid contract call for method="double" on contract="${doublerContract.address}": invalid BigNumber string (argument="value", value="invalid", code=INVALID_ARGUMENT, version=bignumber/5.6.2)`
`Invalid contract call for method="double" on contract="${doublerContract.address}": invalid BigNumber string (argument="value", value="invalid", code=INVALID_ARGUMENT, version=bignumber/5.7.0)`
)
expect(result.current[3]?.value?.[0]).to.eq(BigNumber.from(4))
expect(result.current[3]?.error).to.be.undefined
Expand All @@ -553,7 +553,7 @@ describe('useCall', () => {

expect(result.current[2]?.value).to.be.undefined
expect(result.current[2]?.error?.message).to.eq(
`Invalid contract call for method="double" on contract="${doublerContract.address}": invalid BigNumber string (argument="value", value="invalid", code=INVALID_ARGUMENT, version=bignumber/5.6.2)`
`Invalid contract call for method="double" on contract="${doublerContract.address}": invalid BigNumber string (argument="value", value="invalid", code=INVALID_ARGUMENT, version=bignumber/5.7.0)`
)

expect(result.current[3]?.value?.[0]).to.eq(BigNumber.from(6))
Expand Down
8 changes: 4 additions & 4 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"@docusaurus/preset-classic": "2.0.0-beta.17",
"@docusaurus/remark-plugin-npm2yarn": "^2.0.0-beta.17",
"@docusaurus/utils-validation": "^2.4.1",
"@ethersproject/contracts": "5.6.0",
"@ethersproject/providers": "5.6.2",
"@ethersproject/units": "5.6.0",
"@ethersproject/contracts": "5.7.0",
"@ethersproject/providers": "5.7.2",
"@ethersproject/units": "5.7.0",
"@mdx-js/react": "^1.6.22",
"@metamask/jazzicon": "^2.0.0",
"@usedapp/coingecko": "workspace:*",
Expand All @@ -42,7 +42,7 @@
"clsx": "^1.1.1",
"eslint": "7.22.0",
"eslint-plugin-react-hooks": "^4.3.0",
"ethers": "5.6.9",
"ethers": "5.7.2",
"node-polyfill-webpack-plugin": "^1.1.4",
"prettier": "^2.1.2",
"prism-react-renderer": "^1.2.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"src"
],
"dependencies": {
"@ethersproject/abi": "5.6.1",
"@ethersproject/contracts": "5.6.0",
"@ethersproject/units": "5.6.0",
"@ethersproject/abi": "5.7.0",
"@ethersproject/contracts": "5.7.0",
"@ethersproject/units": "5.7.0",
"@types/styled-components": "^5.1.7",
"@usedapp/coingecko": "workspace:*",
"@usedapp/core": "workspace:*",
Expand All @@ -52,7 +52,7 @@
"web3modal": "^1.9.5"
},
"devDependencies": {
"@ethersproject/providers": "5.6.2",
"@ethersproject/providers": "5.7.2",
"@playwright/test": "^1.36.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
"@swc-node/register": "^1.4.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"build-storybook": "build-storybook -s ./static"
},
"dependencies": {
"@ethersproject/abi": "5.6.1",
"@ethersproject/address": "5.6.0",
"ethers": "5.6.9",
"@ethersproject/abi": "5.7.0",
"@ethersproject/address": "5.7.0",
"ethers": "5.7.2",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-is": "^18.0.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"typescript": "^4.6.2"
},
"dependencies": {
"@ethersproject/constants": "5.6.0",
"@ethersproject/contracts": "5.6.0",
"@ethersproject/providers": "5.6.2",
"@ethersproject/constants": "5.7.0",
"@ethersproject/contracts": "5.7.0",
"@ethersproject/providers": "5.7.2",
"@usedapp/core": "workspace:*",
"ethers": "5.6.9",
"ethers": "5.7.2",
"react": "17.0.1",
"react-dom": "17.0.1"
},
Expand Down
Loading

3 comments on commit 5a626b8

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.