MCPcopy Create free account
hub / github.com/citp/BlockSci / AddOpReturnMethods

Class AddOpReturnMethods

blockscipy/src/scripts/nulldata/nulldata_proxy_py.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include <blocksci/scripts/nulldata_script.hpp>
21
22struct AddOpReturnMethods {
23 template <typename FuncApplication>
24 void operator()(FuncApplication func) {
25 using namespace blocksci;
26 func(property_tag, "data", +[](const script::OpReturn &address) {
27 return pybind11::bytes(address.getData());
28 }, "Data contained inside this address");
29 }
30};
31
32void addNulldataProxyMethods(AllProxyClasses<blocksci::script::OpReturn, ProxyAddress> &cls) {
33 cls.applyToAll(AddProxyMethods{});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected