Skip to content

Commit

Permalink
feat: updates based on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jan 22, 2025
1 parent ef13870 commit e0912fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/taiko-client/driver/txlist_fetcher/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (d *BlobFetcher) FetchOntake(
meta metadata.TaikoBlockMetaDataOntake,
) ([]byte, error) {
if !meta.GetBlobUsed() {
return nil, pkg.ErrBlobUsed
return nil, pkg.ErrBlobUnused
}

// Fetch the L1 block sidecars.
Expand Down Expand Up @@ -92,7 +92,7 @@ func (d *BlobFetcher) FetchPacaya(
meta metadata.TaikoBatchMetaDataPacaya,
) ([]byte, error) {
if meta.GetNumBlobs() == 0 {
return nil, pkg.ErrBlobUsed
return nil, pkg.ErrBlobUnused
}

var b []byte
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func (v *AnchorTxValidator) ValidateAnchorTx(tx *types.Transaction) error {
}
if method.Name != "anchor" && method.Name != "anchorV2" && method.Name != "anchorV3" {
return fmt.Errorf(
"invalid TaikoL2.anchorV2 / TaikoAnchor.anchorV3 transaction selector, expect: %s, actual: %s",
"anchor / anchorV2",
"invalid TaikoL2.anchor / TaikoL2.anchorV2 / TaikoAnchor.anchorV3 transaction selector, expect: %s, actual: %s",
"anchor / anchorV2 / anchorV3",
method.Name,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/cenkalti/backoff/v4"
"github.com/ethereum/go-ethereum/log"

"github.com/taikoxyz/taiko-mono/packages/taiko-client/bindings/metadata"
"github.com/taikoxyz/taiko-mono/packages/taiko-client/internal/metrics"
eventIterator "github.com/taikoxyz/taiko-mono/packages/taiko-client/pkg/chain_iterator/event_iterator"
Expand Down

0 comments on commit e0912fd

Please sign in to comment.