Skip to content

Commit

Permalink
Merge branch 'dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls authored Oct 25, 2023
2 parents 12acdbb + 10b217f commit 0d26591
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions contracts/test/AttestationReader.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,20 @@ contract AttestationReaderTest is Test {
testAttestationReader.updateEASRegistryAddress(address(0));
}

function test_getAttestation_fromEAS(EASAttestation memory easAttestation) public {
vm.assume(easAttestation.schema.length != 0);
function test_getAttestation_fromEAS() public {
EASAttestation memory easAttestation = EASAttestation({
uid: keccak256(abi.encodePacked("uniqueID")),
schema: keccak256(abi.encodePacked("schemaID")),
time: uint64(block.timestamp),
expirationTime: uint64(block.timestamp + 1 weeks),
revocationTime: 0,
refUID: keccak256(abi.encodePacked("refUID")),
recipient: msg.sender,
attester: address(this),
revocable: true,
data: "Custom data"
});

EASRegistryMock easRegistry = EASRegistryMock(easRegistryAddress);
easRegistry.addAttestation(easAttestation);

Expand Down

0 comments on commit 0d26591

Please sign in to comment.