Skip to content

Instantly share code, notes, and snippets.

View ColdDevil's full-sized avatar

Florian Blum ColdDevil

View GitHub Profile
did:3:kjzl6cwe1jw14b8m9dzca6oddwilh6y9mh3n7tyq4k52bcybsilm7h7y6a1few3
@ColdDevil
ColdDevil / Cheapo.sol
Created September 7, 2021 23:41
Experimental NFT using the basefee of a block which minted it
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
// see here for context: https://twitter.com/shegenerates/status/1435376783646502917
// based on https://gist.github.com/shegenerates/3460a2ea4dd363a3e0060397f23c8edf
contract Cheapo is ERC721URIStorage {
using Counters for Counters.Counter;
did:3:bafyreidmg7fq6yxhacbjtzoecymrdmhboe5qwpdd6f22aaiv7ti7xu4yqa
did:muport:QmNRFFbyB4jcVxB3DDuWhzzGqxepDipq5xkB81M9TuUxXQ