Skip to content

Commit

Permalink
fix: op-challenger move.go cli command wasn't cancellable (#11716)
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf committed Sep 3, 2024
1 parent 42085ce commit 375b976
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions op-challenger/cmd/move.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"context"
"fmt"

"github.com/ethereum-optimism/optimism/op-challenger/flags"
Expand Down Expand Up @@ -70,7 +69,7 @@ func Move(ctx *cli.Context) error {
return fmt.Errorf("either attack or defense flag must be set")
}

rct, err := txMgr.Send(context.Background(), tx)
rct, err := txMgr.Send(ctx.Context, tx)
if err != nil {
return fmt.Errorf("failed to send tx: %w", err)
}
Expand Down

0 comments on commit 375b976

Please sign in to comment.