Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Apr 18, 2024
1 parent 8882296 commit b9a0d63
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions prover/proof_submitter/transaction/sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,40 +93,6 @@ func (s *TransactionTestSuite) TestSendTxWithBackoff() {
},
func(*bind.TransactOpts) (*txmgr.TxCandidate, error) { return nil, errors.New("L1_TEST") },
))

s.Nil(s.sender.Send(
context.Background(),
&producer.ProofWithHeader{
Meta: meta,
BlockID: common.Big1,
Header: &types.Header{},
Opts: &producer.ProofRequestOptions{EventL1Hash: l1Head.Hash()},
},
func(*bind.TransactOpts) (*txmgr.TxCandidate, error) {
height, err := s.RPCClient.L1.BlockNumber(context.Background())
s.Nil(err)

var block *types.Block
for {
block, err = s.RPCClient.L1.BlockByNumber(context.Background(), new(big.Int).SetUint64(height))
s.Nil(err)
if block.Transactions().Len() != 0 {
break
}
height--
}

tx := block.Transactions()[0]

return &txmgr.TxCandidate{
TxData: tx.Data(),
Blobs: nil,
To: tx.To(),
GasLimit: tx.Gas(),
Value: tx.Value(),
}, nil
},
))
}

func TestTxSenderTestSuite(t *testing.T) {
Expand Down

0 comments on commit b9a0d63

Please sign in to comment.