MCPcopy Create free account
hub / github.com/ElementsProject/elements / byte_popper

Function byte_popper

test/functional/feature_taproot.py:646–648  ·  view source on GitHub ↗

Return a callable that evaluates expr and returns it with its last byte removed.

(expr)

Source from the content-addressed store, hash-verified

644 return lambda ctx: deep_eval(ctx, expr) + b"\x00"
645
646def byte_popper(expr):
647 """Return a callable that evaluates expr and returns it with its last byte removed."""
648 return lambda ctx: deep_eval(ctx, expr)[:-1]
649
650# Expected error strings
651

Callers 1

feature_taproot.pyFile · 0.85

Calls 1

deep_evalFunction · 0.85

Tested by

no test coverage detected