Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
add reset of conditions in the contract
Browse files Browse the repository at this point in the history
  • Loading branch information
schcriher committed Aug 25, 2024
1 parent 387df43 commit fff41f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/hardhat/contracts/Controller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ contract Controller is Ownable {

// Transfer

trainingCount[receiver] = 0;
trainingTimestamp[receiver] = 0;

(bool success, ) = receiver.call{ value: reward }("");
require(success, "Transfer failed");

Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/contracts/deployedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { GenericContractsDeclaration } from "~~/utils/scaffold-eth/contract";
const deployedContracts = {
31337: {
Controller: {
address: "0x5FbDB2315678afecb367f032d93F642f64180aa3",
address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853",
abi: [
{
inputs: [
Expand Down

0 comments on commit fff41f3

Please sign in to comment.