Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Jul 4, 2024
1 parent 7c4b57d commit 6734331
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cmd/blobstream-ops/replay/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Command() *cobra.Command {
Short: "BlobstreamX deployment verification",
Long: "verifies that a BlobstreamX contract is committing to valid data",
SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
config, err := parseFlags(cmd)
if err != nil {
return err
Expand Down
7 changes: 3 additions & 4 deletions replay/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,10 @@ func submitProof(
opts.GasPrice = big.NewInt(bigGasPrice.Int64() + bigGasPrice.Int64()/5)
logger.Debug("transaction still not included, accelerating...", "new_gas_price", opts.GasPrice.Int64())
continue
} else {
logger.Error("transaction failed", "err", err.Error())
logger.Debug("retrying...")
return err
}
logger.Error("transaction failed", "err", err.Error())
logger.Debug("retrying...")
return err
}
return nil
}
Expand Down
9 changes: 4 additions & 5 deletions replay/replayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,10 @@ func getAllDataCommitmentStoredEvents(
_, exists := dataCommitmentEvents[int64(events.Event.StartBlock)]
if exists {
continue
} else {
dataCommitmentEvents[int64(events.Event.StartBlock)] = *events.Event
if int64(events.Event.StartBlock) < latestTargetContractBlock {
gatheredTheNecessaryEvents = true
}
}
dataCommitmentEvents[int64(events.Event.StartBlock)] = *events.Event
if int64(events.Event.StartBlock) < latestTargetContractBlock {
gatheredTheNecessaryEvents = true
}
}
if !events.Next() {
Expand Down

0 comments on commit 6734331

Please sign in to comment.