Skip to content

Commit

Permalink
docs(taiko-client): fix an issue in comment (#17063)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed May 9, 2024
1 parent 9e85e2f commit 49fdd52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
18 changes: 3 additions & 15 deletions packages/taiko-client/pkg/rpc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,9 @@ func GetBlockProofStatus(
defer cancel()

// Get the local L2 parent header.
var (
parent *types.Header
err error
)
if id.Cmp(common.Big1) == 0 {
header, err := cli.L2.HeaderByNumber(ctxWithTimeout, common.Big0)
if err != nil {
return nil, err
}

parent = header
} else {
if parent, err = cli.L2.HeaderByNumber(ctxWithTimeout, new(big.Int).Sub(id, common.Big1)); err != nil {
return nil, err
}
parent, err := cli.L2.HeaderByNumber(ctxWithTimeout, new(big.Int).Sub(id, common.Big1))
if err != nil {
return nil, err
}

// Get the transition state from TaikoL1 contract.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (c *ProofContester) SubmitContest(
// If the transition has already been contested, return early.
if transition.Contester != (common.Address{}) {
log.Info(
"Transaction has already been contested",
"Transition has already been contested",
"blockID", blockID,
"parentHash", parentHash,
"contester", transition.Contester,
Expand Down

0 comments on commit 49fdd52

Please sign in to comment.