Skip to content

Instantly share code, notes, and snippets.

View Depauli1's full-sized avatar
🏠
Working from home

Bless Hukporti Depauli1

🏠
Working from home
View GitHub Profile
@Depauli1
Depauli1 / cheatsheet.sol
Created January 13, 2023 11:01 — forked from kilobytesecurity/cheatsheet.sol
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