Skip to content

Instantly share code, notes, and snippets.

View frenchypeanut's full-sized avatar
🍵

Charles BEYER frenchypeanut

🍵
View GitHub Profile
@frenchypeanut
frenchypeanut / compare_live.fish
Created June 27, 2023 16:41 — forked from DanielVF/compare_live.fish
Compare deployed contracts to version in local repo
#!/opt/homebrew/bin/fish
# Usage:
# ./compare_live.fish CONTRACT_ADDRESS
# Config
set SRC_DIR /PATH/TO/REPO/CONTRACTS
set OZ_DIR $SRC_DIR/node_modules
# Download
@frenchypeanut
frenchypeanut / DemoERC721.sol
Created May 10, 2022 14:29
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.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import {ERC721} from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol";
import {Counters} from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Counters.sol";
/// @dev This contract is only used for testing purposes
contract MockERC721 is ERC721 {
using Counters for Counters.Counter;

Keybase proof

I hereby claim:

  • I am frenchypeanut on github.
  • I am frenchypeanut (https://keybase.io/frenchypeanut) on keybase.
  • I have a public key ASByPOoxREL7BRJjTOvRG-6f1Ue54q70GAYEagdCvVPKsAo

To claim this, I am signing this object: