All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.client.SubmittedTransactionImpl Maven / Gradle / Ivy

/*
 * Copyright 2021 IBM All Rights Reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package org.hyperledger.fabric.client;

import com.google.protobuf.ByteString;
import org.hyperledger.fabric.protos.gateway.SignedCommitStatusRequest;

final class SubmittedTransactionImpl extends CommitImpl implements SubmittedTransaction {
    private final ByteString result;

    SubmittedTransactionImpl(
            final GatewayClient client,
            final SigningIdentity signingIdentity,
            final String transactionId,
            final SignedCommitStatusRequest signedRequest,
            final ByteString result) {
        super(client, signingIdentity, transactionId, signedRequest);
        this.result = result;
    }

    @Override
    public byte[] getResult() {
        return result.toByteArray();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy