Skip to content

Instantly share code, notes, and snippets.

View DhairyaSethi's full-sized avatar
🎲
.

Dhairya Sethi DhairyaSethi

🎲
.
View GitHub Profile
// To enable meta transaction, let create a generic method that calls executeMetaTransaction by taking the user signature
// and then execute transaction via Biconomy
// Dependencies
import {toBuffer} from "ethereumjs-util";
import abi from "ethereumjs-abi";
import events from "events";
// Initialization of web3
let web3 = new Web3(window.ethereum);
0xf9E04D14D62DCc9CA229C49Cd931A6d9eCD5a40e
@DhairyaSethi
DhairyaSethi / verifySign.sol
Created March 7, 2022 16:01
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.0;
contract VerifySign {
struct EIP712Domain {
string name;
string version;
uint256 chainId;
address verifyingContract;
}