Skip to content

Commit

Permalink
update: forge formated repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonnyjoe committed Dec 17, 2024
1 parent 926bd48 commit 1607e5f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
9 changes: 4 additions & 5 deletions src/BaseContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ abstract contract BaseContract is ICoprocessorCallback {
/// @param _machineHash The machine hash associated with dapp whose logic the coProcessor would run
/// @param _payloadHash The hash of the input payload
/// @param outputs The outputs returned by the coprocessor
function coprocessorCallbackOutputsOnly(
bytes32 _machineHash,
bytes32 _payloadHash,
bytes[] calldata outputs
) external override {
function coprocessorCallbackOutputsOnly(bytes32 _machineHash, bytes32 _payloadHash, bytes[] calldata outputs)
external
override
{
require(msg.sender == address(coprocessor), "Unauthorized caller");
require(_machineHash == machineHash, "Machine hash mismatch");
require(computationSent[_payloadHash], "Computation not found");
Expand Down
2 changes: 1 addition & 1 deletion src/ICoprocessor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ pragma solidity ^0.8.28;

interface ICoprocessor {
function issueTask(bytes32 machineHash, bytes calldata input, address callbackAddress) external;
}
}
2 changes: 1 addition & 1 deletion src/ICoprocessorCallback.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ interface ICoprocessorOutputs {
interface ICoprocessorCallback {
function coprocessorCallbackOutputsOnly(bytes32 machineHash, bytes32 payloadHash, bytes[] calldata outputs)
external;
}
}
6 changes: 1 addition & 5 deletions test/BaseContract.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ import {BaseContract} from "../src/BaseContract.sol";
contract CounterTest is Test {
BaseContract public baseContract;

function setUp() public {

}


function setUp() public {}
}

0 comments on commit 1607e5f

Please sign in to comment.