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();
}
}