Skip to content

Commit

Permalink
Fix tests, bump major version
Browse files Browse the repository at this point in the history
  • Loading branch information
zencephalon committed Oct 26, 2023
1 parent 878f603 commit 5099d6a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .changeset/grumpy-humans-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"op-viem": major
---

Leave alpha.

- writeDepositETH and simulateDepositETH now take an `args.amount` instead of using a value arg.
- getSecondsToNextL2Output throws an error if the passed latestL2BlockNumber is less than the latestBlockNumber reported by the l2OutputOracle.
- writeFinalizeWithdrawalTransaction takes an `args` parameter like most other actions.
3 changes: 1 addition & 2 deletions src/_test/live.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test('correctly retrieves L2 hash', async () => {

const args: DepositTransactionParameters = {
to: account.address,
value: 1n,
mint: 1n,
data: '0x',
gasLimit: 0n,
isCreation: false,
Expand All @@ -48,7 +48,6 @@ test('correctly retrieves L2 hash', async () => {
const depositHash = await walletClient.writeDepositTransaction({
...baseGoerliAddresses,
args,
value: 1n,
})

console.log('depositHash', depositHash)
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineConfig({
lines: 95,
statements: 95,
functions: 90,
branches: 93.82,
branches: 90,
thresholdAutoUpdate: true,
reporter: ['text', 'json-summary', 'json'],
exclude: [
Expand Down

0 comments on commit 5099d6a

Please sign in to comment.