Skip to content

Commit

Permalink
👘 Update ethers
Browse files Browse the repository at this point in the history
  • Loading branch information
nezouse committed May 14, 2024
1 parent 4840545 commit 06be685
Show file tree
Hide file tree
Showing 7 changed files with 313 additions and 212 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
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@ethersproject/abi": "5.6.1",
"@ethersproject/address": "5.6.0",
"ethers": "5.6.9",
"ethers": "5.7.2",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-is": "^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@ethersproject/contracts": "5.6.0",
"@ethersproject/providers": "5.6.2",
"@usedapp/core": "workspace:*",
"ethers": "5.6.9",
"ethers": "5.7.2",
"react": "17.0.1",
"react-dom": "17.0.1"
},
Expand Down
Loading

0 comments on commit 06be685

Please sign in to comment.