Skip to content

Commit

Permalink
chore(ethutil): Improve debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoura committed Jul 31, 2024
1 parent 7dc537a commit a9297b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/ethutil/ethutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package ethutil
import (
"context"
"fmt"
"log/slog"
"math/big"

"github.com/cartesi/rollups-node/pkg/addresses"
Expand Down Expand Up @@ -104,6 +105,9 @@ func getInputIndex(
if err != nil {
return 0, fmt.Errorf("failed to parse input added event: %v", err)
}

slog.Debug("Input added event", "event", inputAdded)

// We assume that int will fit all dapp inputs
inputIndex := int(inputAdded.Index.Int64())
return inputIndex, nil
Expand Down

0 comments on commit a9297b4

Please sign in to comment.