Skip to content

Instantly share code, notes, and snippets.

View kilobytesecurity's full-sized avatar
💭
Compiling

Kilobytesecurity kilobytesecurity

💭
Compiling
View GitHub Profile
@kilobytesecurity
kilobytesecurity / cheatsheet.sol
Created December 17, 2021 08:44 — forked from patrickd-/cheatsheet.md
Solidity – Compilable Cheatsheet
// SPDX-License-Identifier: MIT
// ^ recommended, included machine readable in bytecode metadata
// Software Package Data Exchange is an open standard
pragma solidity ^0.8.7;
// ^ floating pragma, min 0.8.7 max excluding 0.9.0
// same as complex pragma: pragma solidity >=0.8.7 <0.9.0;
// major.breakingchanges.bugfixes
// only makes the compiler check for compatibility and throws error if not matching!
// should only be floating during development, fixed everywhere during testing & deployment