Skip to content

Commit 24b29e0

Browse files
committed
fix: Added missing function definition
Signed-off-by: gsstoykov <georgi.stoykov@limechain.tech>
1 parent eac97a5 commit 24b29e0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/sdk/main/src/Transaction.cc

+14
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,20 @@ SdkRequestType& Transaction<SdkRequestType>::batchify(const Client& client, cons
443443
return static_cast<SdkRequestType&>(*this);
444444
}
445445

446+
//-----
447+
template<typename SdkRequestType>
448+
SdkRequestType& Transaction<SdkRequestType>::setBatchKey(const std::shared_ptr<Key>& batchKey)
449+
{
450+
requireNotFrozen();
451+
452+
if (batchKey)
453+
{
454+
mImpl->mBatchKey = batchKey;
455+
}
456+
457+
return static_cast<SdkRequestType&>(*this);
458+
}
459+
446460
//-----
447461
template<typename SdkRequestType>
448462
SdkRequestType& Transaction<SdkRequestType>::addSignature(const std::shared_ptr<PublicKey>& publicKey,

0 commit comments

Comments
 (0)