Files
Nim/tests/ic/mgofpid.nim
2026-06-15 21:20:09 +02:00

7 lines
358 B
Nim

# Helper for tgenericoffer.nim: imports mgofmh but NOT mgofmc, then calls the
# generic `digest`. Under IC this re-instantiates digest here, where mgofmc's
# `==` is NOT in scope — so getOrDefault[MultiCodec] must be REUSED from mgofmh's
# offer, not re-instantiated, or `==(MultiCodec)` resolution fails.
import mgofmh
proc callDigest*(): int = digest(5)