Skip to content

Commit

Permalink
fix(status-page): latest proof time (#13511)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadab-taiko authored Mar 31, 2023
1 parent 884e782 commit c0bc671
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/status-page/src/pages/home/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,12 @@
const contract = new Contract(address, TaikoL1, provider);
contract.on(
"BlockProven",
(id, parentHash, blockHash, prover, provenAt) => {
(id, parentHash, blockHash, prover, provenAt, ...args) => {
// ignore oracle prover
if (prover.toLowerCase() !== oracleProverAddress.toLowerCase()) {
onEvent(new Date(provenAt.toNumber() * 1000).toString());
if(!provenAt.eq(0)) {
onEvent(new Date(provenAt.toNumber() * 1000).toString());
}
}
}
);
Expand Down

0 comments on commit c0bc671

Please sign in to comment.