Skip to content

Commit

Permalink
chore: console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
tnkshuuhei committed Oct 13, 2024
1 parent fe0c041 commit 543f301
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Evaluation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "@openzeppelin/contracts/governance/IGovernor.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import { IEAS, Attestation, AttestationRequest, AttestationRequestData } from "eas-contracts/IEAS.sol";
import { ISchemaRegistry } from "eas-contracts/ISchemaRegistry.sol";
import { console } from "forge-std/console.sol";

import "./libraries/Errors.sol";
import { CEP } from "./CEP.sol";
Expand Down Expand Up @@ -115,6 +116,11 @@ contract Evaluation is AccessControl, Errors, IERC1155Receiver {
override
returns (bytes4)
{
console.logAddress(operator);
console.logAddress(from);
console.logBytes(data);
console.logUint(id);
console.logUint(value);
return this.onERC1155Received.selector;
}

Expand All @@ -130,6 +136,13 @@ contract Evaluation is AccessControl, Errors, IERC1155Receiver {
override
returns (bytes4)
{
console.logAddress(operator);
console.logAddress(from);
console.logBytes(data);
for (uint256 i = 0; i < ids.length; i++) {
console.logUint(ids[i]);
console.logUint(values[i]);
}
return this.onERC1155BatchReceived.selector;
}
}

0 comments on commit 543f301

Please sign in to comment.