Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat: update onBlockProven
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Oct 6, 2023
1 parent 731725b commit 9283bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -728,11 +728,11 @@ func (p *Prover) onBlockProven(ctx context.Context, event *bindings.TaikoL1Clien
} else {
// generate oracle proof if oracle prover, proof is invalid
if p.cfg.OracleProver {
L1Height, err := p.rpc.TaikoL2.LatestSyncedL1Height(&bind.CallOpts{Context: ctx, BlockNumber: event.BlockId})
l1Height, err := p.rpc.TaikoL2.LatestSyncedL1Height(&bind.CallOpts{Context: ctx, BlockNumber: event.BlockId})
if err != nil {
return err
}
return p.requestProofForBlockId(event.BlockId, new(big.Int).SetUint64(L1Height))
return p.requestProofForBlockId(event.BlockId, new(big.Int).SetUint64(l1Height))
}
}

Expand Down

0 comments on commit 9283bc2

Please sign in to comment.