Skip to content

Instantly share code, notes, and snippets.

View JoranHonig's full-sized avatar
💭
😈 | Building cool stuff at @MythX | Breaking stuff

JoranHonig

💭
😈 | Building cool stuff at @MythX | Breaking stuff
View GitHub Profile
@JoranHonig
JoranHonig / references_trufflecon.md
Last active October 8, 2023 04:04
References - DevSecOps: Shifting left smart contract development
@JoranHonig
JoranHonig / AnnotatedToken.sol
Last active March 21, 2022 14:54
An annotated erc20 token
pragma solidity ^0.6.0;
///#invariant unchecked_sum(_balances) == _totalSupply;
///#if_succeeds unchecked_sum(_balances) == old(unchecked_sum(_balances)) || msg.sig == bytes4(0x00000000);
contract AnnotatedToken {
uint256 private _totalSupply;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
constructor() public {