Skip to content

Instantly share code, notes, and snippets.

@Philogy
Created January 10, 2024 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Philogy/a7dd9d1663ecec9755cae0d6444fc1c5 to your computer and use it in GitHub Desktop.
Save Philogy/a7dd9d1663ecec9755cae0d6444fc1c5 to your computer and use it in GitHub Desktop.
(defn _double [:uint256 x] :uint256 [:internal :pure]
(* x 2))
(defn add [:uint256 x] :uint256 [:external :pure]
(if (< x 10) 0 (self/_double x)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment