Skip to content

Instantly share code, notes, and snippets.

@frankhillard
frankhillard / gist:00eb5b2428901a66b26123a7a99c7558
Last active November 25, 2019 11:11
simpliest michelson example
# This contract contains an integer in the storage (= a counter).
# It has two entrypoints :
# - increaseCounterBy : storage = storage + value
# - decreaseCounterBy : storage = storage - value
parameter (or (int %increaseCounterBy) (int %decreaseCounterBy));
storage int;
code {
UNPAIR;
IF_LEFT {
ADD