Skip to content

Commit

Permalink
bump viem
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed May 2, 2024
1 parent c6c2ddc commit 0f4f120
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
strategy:
matrix:
typescript-version: ['5.0.4', '5.1.6', '5.2.2', 'latest']
viem-version: ['2.8.4', 'latest']
viem-version: ['2.9.31', 'latest']

steps:
- name: Clone repository
Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/actions/call.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ test('nonce too low', async () => {
nonce: 0
Details: nonce too low
Version: viem@2.8.4"
Version: viem@2.9.31"
`)
})

Expand Down Expand Up @@ -103,7 +103,7 @@ test('insufficient funds', async () => {
value: 100000 ETH
Details: Insufficient funds for gas * price + value
Version: viem@2.8.4"
Version: viem@2.9.31"
`)
})

Expand All @@ -126,7 +126,7 @@ test('maxFeePerGas less than maxPriorityFeePerGas', async () => {
maxFeePerGas: 20 gwei
maxPriorityFeePerGas: 22 gwei
Version: viem@2.8.4"
Version: viem@2.9.31"
`)
})

Expand All @@ -146,7 +146,7 @@ test('contract revert (contract error)', async () => {
data: 0xa0712d6800000000000000000000000000000000000000000000000000000000000001a4
Details: execution reverted: revert: Token ID is taken
Version: viem@2.8.4"
Version: viem@2.9.31"
`)
})

Expand All @@ -166,6 +166,6 @@ test('contract revert (insufficient params)', async () => {
data: 0xa0712d68
Details: execution reverted
Version: viem@2.8.4"
Version: viem@2.9.31"
`)
})
2 changes: 1 addition & 1 deletion packages/core/src/actions/connect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test('behavior: user rejected request', async () => {
[UserRejectedRequestError: User rejected the request.
Details: Failed to connect.
Version: viem@2.8.4]
Version: viem@2.9.31]
`)
})

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/actions/getToken.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ test('behavior: bogus token', async () => {
function: decimals()
Docs: https://viem.sh/docs/contract/multicall
Version: viem@2.8.4"
Version: viem@2.9.31"
`)
})
16 changes: 8 additions & 8 deletions packages/core/src/actions/readContracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ test('throws if allowFailure=false & a contract method fails', async () => {
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract
Version: viem@2.8.4"
Version: viem@2.9.31"
`,
)
})
Expand Down Expand Up @@ -450,7 +450,7 @@ test('allowFailure=true & a contract method fails', async () => {
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract
Version: viem@2.8.4],
Version: viem@2.9.31],
"result": undefined,
"status": "failure",
},
Expand All @@ -464,7 +464,7 @@ test('allowFailure=true & a contract method fails', async () => {
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69421)
Docs: https://viem.sh/docs/contract/readContract
Version: viem@2.8.4],
Version: viem@2.9.31],
"result": undefined,
"status": "failure",
},
Expand Down Expand Up @@ -502,7 +502,7 @@ test('throws if allowFailure=false & encoding contract function data fails', asy
args: (1e+31)
Docs: https://viem.sh/docs/contract/readContract
Version: viem@2.8.4"
Version: viem@2.9.31"
`,
)
})
Expand Down Expand Up @@ -561,7 +561,7 @@ test('allowFailure=true & encoding contract function data fails', async () => {
args: (1e+31)
Docs: https://viem.sh/docs/contract/readContract
Version: viem@2.8.4],
Version: viem@2.9.31],
"result": undefined,
"status": "failure",
},
Expand All @@ -579,7 +579,7 @@ test('allowFailure=true & encoding contract function data fails', async () => {
args: (1e+31)
Docs: https://viem.sh/docs/contract/readContract
Version: viem@2.8.4],
Version: viem@2.9.31],
"result": undefined,
"status": "failure",
},
Expand Down Expand Up @@ -617,7 +617,7 @@ test('should throw if allowFailure=false & a contract has no response', async ()
args: (0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC)
Docs: https://viem.sh/docs/contract/readContract
Version: viem@2.8.4"
Version: viem@2.9.31"
`,
)
})
Expand Down Expand Up @@ -669,7 +669,7 @@ test('allowFailure=true & a contract has no response', async () => {
args: (0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC)
Docs: https://viem.sh/docs/contract/readContract
Version: viem@2.8.4],
Version: viem@2.9.31],
"result": undefined,
"status": "failure",
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/actions/sendTransaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ test('behavior: value exceeds balance', async () => {
value: 99999 ETH
Details: Insufficient funds for gas * price + value
Version: viem@2.8.4"
Version: viem@2.9.31"
`)
await disconnect(config, { connector })
})
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/actions/signMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test('behavior: user rejected request', async () => {
[UserRejectedRequestError: User rejected the request.
Details: Failed to sign message.
Version: viem@2.8.4]
Version: viem@2.9.31]
`)
await disconnect(config, { connector: connector_ })
})
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/actions/signTypedData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test('behavior: user rejected request', async () => {
[UserRejectedRequestError: User rejected the request.
Details: Failed to sign typed data.
Version: viem@2.8.4]
Version: viem@2.9.31]
`)
await disconnect(config, { connector: connector_ })
})
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/actions/switchChain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test('behavior: user rejected request', async () => {
[UserRejectedRequestError: User rejected the request.
Details: Failed to switch chain.
Version: viem@2.8.4]
Version: viem@2.9.31]
`)
await disconnect(config, { connector: connector_ })
})
Expand Down

0 comments on commit 0f4f120

Please sign in to comment.