Skip to content

Instantly share code, notes, and snippets.

View anubhavgirdhar's full-sized avatar

Anubhav Girdhar anubhavgirdhar

View GitHub Profile
@anubhavgirdhar
anubhavgirdhar / EIP712.sol
Created August 5, 2020 16:57
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.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity ^0.5.0;
contract EIP712 {
mapping(address => uint256) public nonces;
struct EIP712Domain {
string name;
string version;
uint256 chainId;
@anubhavgirdhar
anubhavgirdhar / 1_Storage.sol
Created August 6, 2020 13:33
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.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;
@anubhavgirdhar
anubhavgirdhar / Bunch.sol
Created August 17, 2020 14:20
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.6.12+commit.27d51765.js&optimize=false&gist=
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import "./BunchStorage.sol";
contract Bunch is BunchStorage {
/**