Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- finalize (#79, #117, #119)
- reveal (#114, #118)
- contribute (#108, #109, #110)
- IexecPoco1 (#107, #113)
- IexecPoco1 (#107, #113, #115)
- Add `.test` suffix to unit test files (#106)
- ENSIntegration (#105)
- IexecOrderManagement (#101, #102, #103, #104)
Expand Down
26 changes: 26 additions & 0 deletions contracts/tools/testing/ERC1271Mock.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// SPDX-FileCopyrightText: 2024 IEXEC BLOCKCHAIN TECH <contact@iex.ec>
// SPDX-License-Identifier: Apache-2.0

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-v5/interfaces/IERC1271.sol";

// Note: section that are not covered by tests are commented.
// TODO: uncomment when adding signature verification tests.

contract ERC1271Mock is IERC1271 {
// bool public shouldValidateSignature;

// function setShouldValidateSignature(bool value) external {
// shouldValidateSignature = value;
// }

function isValidSignature(
bytes32,
bytes memory
) external view override returns (bytes4 magicValue) {
// if (shouldValidateSignature) {
// magicValue = IERC1271.isValidSignature.selector;
// }
}
}
10 changes: 10 additions & 0 deletions contracts/tools/testing/OwnableMock.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// SPDX-FileCopyrightText: 2024 IEXEC BLOCKCHAIN TECH <contact@iex.ec>
// SPDX-License-Identifier: Apache-2.0

pragma solidity ^0.8.0;

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

contract OwnableMock is Ownable {
constructor() Ownable(msg.sender) {}
}
Loading