Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kolhapuresatyajeet committed Sep 20, 2023
1 parent 0054e6b commit 4cca61e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/example/NFTPortal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ contract NFTPortal is AbstractPortal, ERC721 {
/// about them do throw.
/// @param tokenId The identifier for an NFT
/// @return The address of the owner of the NFT
function ownerOf(uint256 tokenId) public view virtual override returns (address)
{
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
bytes32 attestationId = bytes32(tokenId);
Attestation memory attestation = attestationRegistry.getAttestation(attestationId);
return address(uint160(bytes20(attestation.subject)));
}

function attest(AttestationPayload memory attestationPayload, bytes[] memory validationPayloads) public override payable {
function attest(
AttestationPayload memory attestationPayload,
bytes[] memory validationPayloads
) public payable override {
super.attest(attestationPayload, validationPayloads);
numberOfAttestationsPerOwner[attestationPayload.subject]++;
}
Expand Down
5 changes: 4 additions & 1 deletion src/interface/AbstractPortal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ abstract contract AbstractPortal is IERC165 {
* @param validationPayloads the payloads to validate via the modules to issue the attestations
* @dev Runs all modules for the portal and registers the attestation using AttestationRegistry
*/
function attest(AttestationPayload memory attestationPayload, bytes[] memory validationPayloads) public virtual payable {
function attest(
AttestationPayload memory attestationPayload,
bytes[] memory validationPayloads
) public payable virtual {
moduleRegistry.runModules(modules, attestationPayload, validationPayloads, msg.value);

_onAttest(attestationPayload);
Expand Down

0 comments on commit 4cca61e

Please sign in to comment.