How to use the fabric-protos.common.Capability function in fabric-protos

To help you get started, we’ve selected a few fabric-protos examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hyperledger / caliper / packages / caliper-fabric / lib / fabric.js View on Github external
_populateCapabilities(applicationCapabilities) {
        const capabilities = {};
        for (const capability of applicationCapabilities) {
            capabilities[capability] = new common.Capability();
        }
        return  new common.Capabilities({ capabilities: capabilities });
    }
github hyperledger / caliper / packages / caliper-fabric / lib / create-channel.js View on Github external
function populateCapabilities(applicationCapabilities) {
    const capabilities = {};
    for (const capability of applicationCapabilities) {
        capabilities[capability] = new common.Capability();
    }
    return  new common.Capabilities({ capabilities: capabilities });
}