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

Function getter

test/functional/feature_taproot.py:178–180  ·  view source on GitHub ↗

Return a callable that evaluates name in its passed context.

(name, **kwargs)

Source from the content-addressed store, hash-verified

176 return expr.value
177
178def getter(name, **kwargs):
179 """Return a callable that evaluates name in its passed context."""
180 return lambda ctx: get({**ctx, **kwargs}, name)
181
182def override(expr, **kwargs):
183 """Return a callable that evaluates expr in a modified context."""

Callers 5

make_spenderFunction · 0.85
feature_taproot.pyFile · 0.85
spenders_taproot_activeFunction · 0.85
gen_test_vectorsMethod · 0.85

Calls 1

getFunction · 0.85

Tested by

no test coverage detected