Skip to content

Instantly share code, notes, and snippets.

@mirayashi
mirayashi / SignedPermitChecker.sol
Created September 15, 2023 21:57
Gasless EIP712 impl
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import {Sapphire} from "@oasisprotocol/sapphire-contracts/contracts/Sapphire.sol";
contract SignedPermitChecker is EIP712 {
struct Permit {
address requester;