Commit c2f5745a authored by tre's avatar tre

lint

parent 42d2d291
......@@ -2,7 +2,6 @@
pragma solidity 0.8.15;
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 {
EIP712Upgradeable
......@@ -65,8 +64,6 @@ contract AdminFAM is FaucetAuthModule, Semver, EIP712Upgradeable {
*/
bytes32 public constant PROOF_TYPEHASH =
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.
......@@ -107,13 +104,7 @@ contract AdminFAM is FaucetAuthModule, Semver, EIP712Upgradeable {
Faucet.DripParameters memory params,
bytes memory id,
bytes memory proof
)
external
view
returns (
bool
)
{
) external view returns (bool) {
// Generate a EIP712 typed data hash to compare against the proof.
bytes32 digest = _hashTypedDataV4(
keccak256(
......@@ -203,10 +194,7 @@ contract Faucet {
/**
* @notice Allows users to donate ETH to this contract.
*/
receive()
external
payable
{
receive() external payable {
// Thank you!
}
......@@ -219,10 +207,7 @@ contract Faucet {
function withdraw(
address payable recipient,
uint256 amount
)
public
priviledged
{
) public priviledged {
new SafeSend{value: amount}(recipient);
}
......@@ -235,10 +220,7 @@ contract Faucet {
function configure(
FaucetAuthModule module,
ModuleConfig memory config
)
public
priviledged
{
) public priviledged {
modules[module] = config;
}
......@@ -251,9 +233,7 @@ contract Faucet {
function drip(
DripParameters memory params,
AuthParameters memory auth
)
public
{
) public {
// Grab the module config once.
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