Commit c2f5745a authored by tre's avatar tre

lint

parent 42d2d291
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
pragma solidity 0.8.15; pragma solidity 0.8.15;
import { Semver } from "@eth-optimism/contracts-bedrock/contracts/universal/Semver.sol"; import { Semver } from "@eth-optimism/contracts-bedrock/contracts/universal/Semver.sol";
import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import { SignatureChecker } from "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol"; import { SignatureChecker } from "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import { import {
EIP712Upgradeable EIP712Upgradeable
...@@ -65,8 +64,6 @@ contract AdminFAM is FaucetAuthModule, Semver, EIP712Upgradeable { ...@@ -65,8 +64,6 @@ contract AdminFAM is FaucetAuthModule, Semver, EIP712Upgradeable {
*/ */
bytes32 public constant PROOF_TYPEHASH = bytes32 public constant PROOF_TYPEHASH =
keccak256("Proof(address recipient,bytes32 nonce,bytes id)"); keccak256("Proof(address recipient,bytes32 nonce,bytes id)");
// bytes32 public constant PROOF_TYPEHASH =
// keccak256("Proof(address recipient,bytes id)");
/** /**
* @notice Struct that represents a proof that verifies the admin. * @notice Struct that represents a proof that verifies the admin.
...@@ -107,13 +104,7 @@ contract AdminFAM is FaucetAuthModule, Semver, EIP712Upgradeable { ...@@ -107,13 +104,7 @@ contract AdminFAM is FaucetAuthModule, Semver, EIP712Upgradeable {
Faucet.DripParameters memory params, Faucet.DripParameters memory params,
bytes memory id, bytes memory id,
bytes memory proof bytes memory proof
) ) external view returns (bool) {
external
view
returns (
bool
)
{
// Generate a EIP712 typed data hash to compare against the proof. // Generate a EIP712 typed data hash to compare against the proof.
bytes32 digest = _hashTypedDataV4( bytes32 digest = _hashTypedDataV4(
keccak256( keccak256(
...@@ -203,10 +194,7 @@ contract Faucet { ...@@ -203,10 +194,7 @@ contract Faucet {
/** /**
* @notice Allows users to donate ETH to this contract. * @notice Allows users to donate ETH to this contract.
*/ */
receive() receive() external payable {
external
payable
{
// Thank you! // Thank you!
} }
...@@ -219,10 +207,7 @@ contract Faucet { ...@@ -219,10 +207,7 @@ contract Faucet {
function withdraw( function withdraw(
address payable recipient, address payable recipient,
uint256 amount uint256 amount
) ) public priviledged {
public
priviledged
{
new SafeSend{value: amount}(recipient); new SafeSend{value: amount}(recipient);
} }
...@@ -235,10 +220,7 @@ contract Faucet { ...@@ -235,10 +220,7 @@ contract Faucet {
function configure( function configure(
FaucetAuthModule module, FaucetAuthModule module,
ModuleConfig memory config ModuleConfig memory config
) ) public priviledged {
public
priviledged
{
modules[module] = config; modules[module] = config;
} }
...@@ -251,9 +233,7 @@ contract Faucet { ...@@ -251,9 +233,7 @@ contract Faucet {
function drip( function drip(
DripParameters memory params, DripParameters memory params,
AuthParameters memory auth AuthParameters memory auth
) ) public {
public
{
// Grab the module config once. // Grab the module config once.
ModuleConfig memory config = modules[auth.module]; ModuleConfig memory config = modules[auth.module];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment