Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshvanahalli committed Mar 26, 2024
1 parent 054e895 commit 329edf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arbnode/batch_poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,10 @@ func (b *BatchPoster) checkReverts(ctx context.Context, to int64) (bool, error)
if shouldHalt {
logLevel = log.Error
}
al := types.AccessList{}
if tx.Accesses != nil {
al = *tx.Accesses
}
txErr := arbutil.DetailTxErrorUsingCallMsg(ctx, b.l1Reader.Client(), tx.Hash, r, ethereum.CallMsg{
From: tx.From,
To: tx.To,
Expand All @@ -495,7 +499,7 @@ func (b *BatchPoster) checkReverts(ctx context.Context, to int64) (bool, error)
GasTipCap: tx.GasTipCap.ToInt(),
Value: tx.Value.ToInt(),
Data: tx.Input,
AccessList: *tx.Accesses,
AccessList: al,
})
logLevel("Transaction from batch poster reverted", "nonce", tx.Nonce, "txHash", tx.Hash, "blockNumber", r.BlockNumber, "blockHash", r.BlockHash, "txErr", txErr)
return shouldHalt, nil
Expand Down

0 comments on commit 329edf1

Please sign in to comment.