Skip to content

Commit

Permalink
Remove unnecessary .String() call
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan committed Sep 20, 2023
1 parent dedb7db commit 2a79dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/core2p2p/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func adaptL1HandlerTransaction(tx *core.L1HandlerTransaction) *spec.Transaction_
}

if tx.Version != nil && !tx.Version.Is(1) {
panic(fmt.Errorf("unsupported L1Handler tx version %s", tx.Version.String()))
panic(fmt.Errorf("unsupported L1Handler tx version %s", tx.Version))
}

return &spec.Transaction_L1Handler{
Expand Down

0 comments on commit 2a79dbe

Please sign in to comment.