Commit 51a1208f authored by Adrian Sutton's avatar Adrian Sutton

Remove SourceHash which was being calculated incorrectly

parent c2a8bc3c
...@@ -53,7 +53,6 @@ func TestInvalidDepositInFCU(t *testing.T) { ...@@ -53,7 +53,6 @@ func TestInvalidDepositInFCU(t *testing.T) {
require.Equal(t, 0, balance.Cmp(common.Big0)) require.Equal(t, 0, balance.Cmp(common.Big0))
badDepositTx := types.NewTx(&types.DepositTx{ badDepositTx := types.NewTx(&types.DepositTx{
SourceHash: opGeth.L1Head.Hash(),
From: fromAddr, From: fromAddr,
To: &fromAddr, // send it to ourselves To: &fromAddr, // send it to ourselves
Value: big.NewInt(params.Ether), Value: big.NewInt(params.Ether),
...@@ -103,7 +102,6 @@ func TestBedrockDepositTx(t *testing.T) { ...@@ -103,7 +102,6 @@ func TestBedrockDepositTx(t *testing.T) {
// Deposit TX with a higher gas limit than required // Deposit TX with a higher gas limit than required
depositTx := types.NewTx(&types.DepositTx{ depositTx := types.NewTx(&types.DepositTx{
SourceHash: opGeth.L1Head.Hash(),
From: aliceAddr, From: aliceAddr,
To: &aliceAddr, To: &aliceAddr,
Value: big.NewInt(0), Value: big.NewInt(0),
...@@ -113,7 +111,6 @@ func TestBedrockDepositTx(t *testing.T) { ...@@ -113,7 +111,6 @@ func TestBedrockDepositTx(t *testing.T) {
// Contract creation deposit tx // Contract creation deposit tx
contractCreateTx := types.NewTx(&types.DepositTx{ contractCreateTx := types.NewTx(&types.DepositTx{
SourceHash: opGeth.L1Head.Hash(),
From: aliceAddr, From: aliceAddr,
Value: big.NewInt(params.Ether), Value: big.NewInt(params.Ether),
Gas: 1000001, Gas: 1000001,
...@@ -158,7 +155,6 @@ func TestBedrockShouldNotRefundDepositTxUnusedGas(t *testing.T) { ...@@ -158,7 +155,6 @@ func TestBedrockShouldNotRefundDepositTxUnusedGas(t *testing.T) {
// Deposit TX with a higher gas limit than required // Deposit TX with a higher gas limit than required
depositTx := types.NewTx(&types.DepositTx{ depositTx := types.NewTx(&types.DepositTx{
SourceHash: opGeth.L1Head.Hash(),
From: aliceAddr, From: aliceAddr,
To: &aliceAddr, To: &aliceAddr,
Value: big.NewInt(0), Value: big.NewInt(0),
......
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