Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zimpha committed Apr 2, 2024
1 parent ad3e4f8 commit 2c701d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/badge/examples/EthereumYearBadge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {Attestation} from "@eas/contracts/IEAS.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import {Base64} from "@openzeppelin/contracts/utils/Base64.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";

import {ScrollBadge} from "../ScrollBadge.sol";
Expand All @@ -16,7 +15,6 @@ import {ScrollBadgeNoExpiry} from "../extensions/ScrollBadgeNoExpiry.sol";
import {ScrollBadgeNonRevocable} from "../extensions/ScrollBadgeNonRevocable.sol";
import {ScrollBadgeSelfAttest} from "../extensions/ScrollBadgeSelfAttest.sol";
import {ScrollBadgeSingleton} from "../extensions/ScrollBadgeSingleton.sol";
import {Unauthorized} from "../../Errors.sol";

string constant ETHEREUM_YEAR_BADGE_SCHEMA = "uint256 year, bytes signature";

Expand Down Expand Up @@ -56,7 +54,10 @@ contract EthereumYearBadge is
// badge UID => current year
mapping(bytes32 => uint256) public badgeYear;

constructor(address resolver_, address offchainSigner_, string memory baseTokenURI_) ScrollBadge(resolver_) EIP712("Ethereum Year Badge", "1") {
constructor(address resolver_, address offchainSigner_, string memory baseTokenURI_)
ScrollBadge(resolver_)
EIP712("Ethereum Year Badge", "1")
{
_updateOffchainSigner(offchainSigner_);

baseTokenURI = baseTokenURI_;
Expand Down

0 comments on commit 2c701d9

Please sign in to comment.