See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
//SPDX-License-Identifier: GPL-3.0 | |
pragma solidity 0.8.15; | |
import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; | |
import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; | |
contract Award is ERC721 { | |
constructor() ERC721('Award', 'A') { | |
_mint(msg.sender, 1337); | |
} |
// ==UserScript== | |
// @name Twitter Report | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description arc boost to report spam on twitter | |
// @author banteg | |
// @match *://twitter.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com | |
// @grant none | |
// ==/UserScript== |
Using newer compiler versions and the optimizer gives gas optimizations and additional safety checks for free!
The advantages of versions 0.8.*
over <0.8.0
are:
0.8.0
(can be more gas efficient than some
library based safemath.)0.8.2
, leads to cheaper runtime gas.
Especially relevant when the contract has small functions. For