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

Commit

Permalink
Merge branch 'main' into err_more_check
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Apr 23, 2024
2 parents 4ff9f25 + 2cd1583 commit 19fd2f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion proposer/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,11 @@ func (p *Proposer) ProposeOp(ctx context.Context) error {

for i, err := range p.ProposeTxLists(ctx, txListsBytes) {
if err != nil {
log.Error("Failed to send TaikoL1.proposeBlock transaction", "index", i, "error", err)
log.Error(
"Failed to send TaikoL1.proposeBlock transaction",
"index", i,
"error", encoding.TryParsingCustomError(err),
)
continue
}

Expand Down
2 changes: 1 addition & 1 deletion proposer/transaction_builder/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (b *BlobTransactionBuilder) Build(
// Send the transaction to the L1 node.
data, err := encoding.TaikoL1ABI.Pack("proposeBlock", encodedParams, []byte{})
if err != nil {
return nil, encoding.TryParsingCustomError(err)
return nil, err
}

return &txmgr.TxCandidate{
Expand Down
2 changes: 1 addition & 1 deletion proposer/transaction_builder/calldata.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (b *CalldataTransactionBuilder) Build(
// Send the transaction to the L1 node.
data, err := encoding.TaikoL1ABI.Pack("proposeBlock", encodedParams, txListBytes)
if err != nil {
return nil, encoding.TryParsingCustomError(err)
return nil, err
}

return &txmgr.TxCandidate{
Expand Down

0 comments on commit 19fd2f8

Please sign in to comment.