Skip to content

Commit

Permalink
feat: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jan 22, 2025
1 parent 8275a72 commit 7d6fc87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/taiko-client/proposer/transaction_builder/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/txmgr"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/rlp"
Expand Down Expand Up @@ -61,13 +62,12 @@ func (b *BlobTransactionBuilder) BuildOntake(
txListBytesArray [][]byte,
) (*txmgr.TxCandidate, error) {
// Check if the current L2 chain is after ontake fork.
// TODO: query from protocol.
l2Head, err := b.rpc.L2.BlockNumber(ctx)
_, slotB, err := b.rpc.GetProtocolStateVariablesOntake(&bind.CallOpts{Context: ctx})
if err != nil {
return nil, err
}

if !b.chainConfig.IsOntake(new(big.Int).SetUint64(l2Head)) {
if !b.chainConfig.IsOntake(new(big.Int).SetUint64(slotB.NumBlocks)) {
return nil, fmt.Errorf("ontake transaction builder is not supported before ontake fork")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ func (b *TxBuilderWithFallback) BuildOntake(
}

// BuildPacaya implements the ProposeBlocksTransactionBuilder interface.
// TODO: improve this method to use func interface.
func (b *TxBuilderWithFallback) BuildPacaya(
ctx context.Context,
txBatch []types.Transactions,
Expand Down

0 comments on commit 7d6fc87

Please sign in to comment.