-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13b41c2
commit 77ab2dc
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
@openzeppelin/contracts=../../node_modules/@openzeppelin/contracts | ||
@openzeppelin=../../node_modules/@openzeppelin/contracts | ||
@openzeppelin=../../node_modules/@openzeppelin/contracts | ||
forge-std=../../node_modules/forge-std | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
import "@openzeppelin/contracts/utils/Strings.sol"; | ||
import "forge-std/src/Test.sol"; | ||
import "forge-std/src/console.sol"; | ||
import "../interfaces/IDKIMRegistry.sol"; | ||
import "../DKIMRegistry.sol"; | ||
|
||
/// @title ECDSAOwnedDKIMRegistry | ||
/// @notice A DKIM Registry that could be updated by predefined ECDSA signer | ||
contract TestDKIMRegistry is Test { | ||
DKIMRegistry public dkimRegistry; | ||
address public signer; | ||
|
||
constructor() { | ||
dkimRegistry = new DKIMRegistry(msg.sender); | ||
signer = msg.sender; | ||
} | ||
|
||
function test_setDKIM() public { | ||
dkimRegistry.setDKIMPublicKeyHash("test.com", "a81273981273bce922"); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters