Skip to content

Commit

Permalink
fix evm time
Browse files Browse the repository at this point in the history
Signed-off-by: bingyuyap <[email protected]>
  • Loading branch information
bingyuyap committed Aug 27, 2024
1 parent 1e19cd3 commit 9c7e42c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions watcher/src/watchers/FTEVMWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ export class FTEVMWatcher extends Watcher {
}

// we do not need to compare the lastBlockTime from tokenRouter and swapLayer as they both use toBlock
const lastBlockTime = tokenRouterResults.lastBlockTime;
return makeBlockKey(toBlock.toString(), lastBlockTime.toString());
const lastBlockTime = new Date(tokenRouterResults.lastBlockTime * 1000);
return makeBlockKey(toBlock.toString(), lastBlockTime.toISOString());
}

// saves items in smaller batches to reduce the impact in any case anything fails
Expand Down

0 comments on commit 9c7e42c

Please sign in to comment.