Skip to content

Commit

Permalink
update contract
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Mar 26, 2024
1 parent c3092f1 commit 179ba79
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,16 @@ contract SimpleLogUpkeepCounter is ILogAutomation, StreamsLookupCompatibleInterf
lastBlock = block.number;
counter = counter + 1;
previousPerformBlock = lastBlock;
(Log memory log, uint256 checkBlock, bytes memory extraData) = abi.decode(performData, (Log, uint256, bytes));
(, bytes memory extraData) = abi.decode(performData, (bytes[], bytes));
(Log memory log, uint256 checkBlock, bytes memory checkData) = abi.decode(extraData, (Log, uint256, bytes));
timeToPerform = block.timestamp - log.timestamp;
isRecovered = false;
if (checkBlock != log.blockNumber) {
isRecovered = true;
}
(, , uint256 performBurnAmount, bytes32 eventSig) = abi.decode(
extraData,
(bytes[], uint256, uint256, bytes32)
(, uint256 performBurnAmount, bytes32 eventSig) = abi.decode(
checkData,
(uint256, uint256, bytes32)
);
uint256 startGas = gasleft();
bytes32 dummyIndex = blockhash(block.number - 1);
Expand Down
Loading

0 comments on commit 179ba79

Please sign in to comment.