diff --git a/.changeset/grumpy-humans-protect.md b/.changeset/grumpy-humans-protect.md new file mode 100644 index 0000000..30d216b --- /dev/null +++ b/.changeset/grumpy-humans-protect.md @@ -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. diff --git a/src/_test/live.test.ts b/src/_test/live.test.ts index 03bc073..99430d6 100644 --- a/src/_test/live.test.ts +++ b/src/_test/live.test.ts @@ -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, @@ -48,7 +48,6 @@ test('correctly retrieves L2 hash', async () => { const depositHash = await walletClient.writeDepositTransaction({ ...baseGoerliAddresses, args, - value: 1n, }) console.log('depositHash', depositHash) diff --git a/vitest.config.ts b/vitest.config.ts index 13c627d..d042548 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -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: [