Commit 2d1063d8 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

op-e2e: use deposit method on weth (#10090)

Move away from using the fallback function on weth9 towards instead
using the explicit deposit method. This is to reduce diff with the
custom gas token project, just a very small change.

The weth98 contract doesn't have a fallback function, if it did
then this change would not be required.
parent e2115904
......@@ -48,7 +48,7 @@ func TestERC20BridgeDeposits(t *testing.T) {
// Get some WETH
opts.Value = big.NewInt(params.Ether)
tx, err = WETH9.Fallback(opts, []byte{})
tx, err = WETH9.Deposit(opts)
require.NoError(t, err)
_, err = wait.ForReceiptOK(context.Background(), l1Client, tx.Hash())
require.NoError(t, err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment