Skip to content

Commit

Permalink
My checkIn.sol contract
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rm5 authored Sep 10, 2024
1 parent dab00c9 commit be0fbea
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/hardhat/contracts/CheckIn.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/access/Ownable.sol";

interface IBatchRegistry {
function checkIn() external;
}

contract CheckIn is Ownable {
IBatchRegistry public batchRegistry;

constructor(address initialOwner, address _batchRegistry) {
super.transferOwnership(initialOwner);
batchRegistry = IBatchRegistry(_batchRegistry);
}

function checkIn() public onlyOwner {
batchRegistry.checkIn();
}
}

0 comments on commit be0fbea

Please sign in to comment.