Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ashitakah committed Jun 12, 2024
1 parent 72c0a07 commit aae713c
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions solidity/for-test/BasicJob.sol
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4 <0.9.0;

import "../interfaces/IKeep3r.sol";
import '../interfaces/IKeep3r.sol';

contract BasicJob {
error KeeperNotValid();
error KeeperNotValid();

address public keep3r;
uint256 public nonce;
uint256[] public array;
address public keep3r;
uint256 public nonce;
uint256[] public array;

constructor(address _keep3r) {
keep3r = _keep3r;
}
constructor(address _keep3r) {
keep3r = _keep3r;
}

function work() external upkeep {}
function work() external upkeep {}

function workHard(uint256 _howHard) external upkeep {
for (uint256 i = nonce; i < _howHard; i++) {
nonce++;
}
function workHard(uint256 _howHard) external upkeep {
for (uint256 i = nonce; i < _howHard; i++) {
nonce++;
}
}

function workRefund(uint256 _howHard) external upkeep {
for (uint256 i; i < _howHard; i++) {
array.push(i);
}

while (array.length > 0) {
array.pop();
}
function workRefund(uint256 _howHard) external upkeep {
for (uint256 i; i < _howHard; i++) {
array.push(i);
}

modifier upkeep() {
if (!IKeep3r(keep3r).isKeeper(msg.sender)) revert KeeperNotValid();
_;
IKeep3r(keep3r).worked(msg.sender);
while (array.length > 0) {
array.pop();
}
}

modifier upkeep() {
if (!IKeep3r(keep3r).isKeeper(msg.sender)) revert KeeperNotValid();
_;
IKeep3r(keep3r).worked(msg.sender);
}
}

0 comments on commit aae713c

Please sign in to comment.