Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jan 24, 2025
1 parent 781dd8d commit 372867a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ import (

func (s *TransactionBuilderTestSuite) TestBuildCalldataOnly() {
builder := s.newTestBuilderWithFallback(false, false, nil)
candidate, err := builder.BuildPacaya(context.Background(), s.txsToPropose)
candidate, err := builder.BuildOntake(context.Background(), [][]byte{[]byte{1}})
s.Nil(err)
s.Zero(len(candidate.Blobs))
}

func (s *TransactionBuilderTestSuite) TestBuildCalldataWithBlobAllowed() {
builder := s.newTestBuilderWithFallback(true, false, nil)
candidate, err := builder.BuildPacaya(context.Background(), s.txsToPropose)
candidate, err := builder.BuildOntake(context.Background(), [][]byte{[]byte{1}})
s.Nil(err)
s.NotZero(len(candidate.Blobs))
}
Expand All @@ -41,7 +41,7 @@ func (s *TransactionBuilderTestSuite) TestBlobAllowed() {
func (s *TransactionBuilderTestSuite) TestFallback() {
// By default, blob fee should be cheaper.
builder := s.newTestBuilderWithFallback(true, true, nil)
candidate, err := builder.BuildPacaya(context.Background(), s.txsToPropose)
candidate, err := builder.BuildOntake(context.Background(), [][]byte{[]byte{1}})
s.Nil(err)
s.NotZero(len(candidate.Blobs))

Expand All @@ -56,7 +56,7 @@ func (s *TransactionBuilderTestSuite) TestFallback() {
nil
})

candidate, err = builder.BuildPacaya(context.Background(), s.txsToPropose)
candidate, err = builder.BuildOntake(context.Background(), [][]byte{[]byte{1}})
s.Nil(err)
s.Zero(len(candidate.Blobs))

Expand All @@ -71,7 +71,7 @@ func (s *TransactionBuilderTestSuite) TestFallback() {
nil
})

candidate, err = builder.BuildPacaya(context.Background(), s.txsToPropose)
candidate, err = builder.BuildOntake(context.Background(), [][]byte{[]byte{1}})
s.Nil(err)
s.NotZero(len(candidate.Blobs))
}
Expand Down

0 comments on commit 372867a

Please sign in to comment.