Skip to content

Commit 3baaa93

Browse files
committed
removed [=] capture clause in Provider.cpp
1 parent 368bc7a commit 3baaa93

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • Plugins/SequencePlugin/Source/SequencePlugin/Private

Plugins/SequencePlugin/Source/SequencePlugin/Private/Provider.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,13 @@ void UProvider::DeployContractWithHash(const FString& Bytecode, const FPrivateKe
269269
{
270270
const FAddress From = GetAddress(GetPublicKey(PrivKey));
271271

272-
TransactionCount(From, EBlockTag::ELatest, [=](uint64 Count)
272+
TransactionCount(From, EBlockTag::ELatest, [this, From, Bytecode, PrivKey, ChainId, OnSuccess, OnFailure](uint64 Count)
273273
{
274274
const FBlockNonce Nonce = FBlockNonce::From(IntToHexString(Count));
275275

276-
this->GetGasPrice([=](const FUnsizedData& GasPrice)
276+
this->GetGasPrice([this, From, Bytecode, PrivKey, ChainId, Nonce, OnSuccess, OnFailure](const FUnsizedData& GasPrice)
277277
{
278-
this->EstimateDeploymentGas(From, Bytecode, [=](const FUnsizedData& GasLimit)
278+
this->EstimateDeploymentGas(From, Bytecode, [this, From, Bytecode, PrivKey, ChainId, Nonce, GasPrice, OnSuccess, OnFailure](const FUnsizedData& GasLimit)
279279
{
280280
const FAddress To = FAddress::From("");
281281
const FUnsizedData Value = HexStringToBinary("");
@@ -285,7 +285,7 @@ void UProvider::DeployContractWithHash(const FString& Bytecode, const FPrivateKe
285285
const FAddress DeployedAddress = GetContractAddress(From, Nonce);
286286
const FUnsizedData SignedTransaction = Transaction.GetSignedTransaction(PrivKey, ChainId);
287287

288-
this->SendRawTransaction("0x" + SignedTransaction.ToHex(), [=](const FUnsizedData& Hash)
288+
this->SendRawTransaction("0x" + SignedTransaction.ToHex(), [OnSuccess, DeployedAddress](const FUnsizedData& Hash)
289289
{
290290
OnSuccess(DeployedAddress, Hash);
291291
}, OnFailure);
@@ -296,7 +296,7 @@ void UProvider::DeployContractWithHash(const FString& Bytecode, const FPrivateKe
296296

297297
void UProvider::DeployContract(const FString& Bytecode, const FPrivateKey& PrivKey, const int64 ChainId, const TSuccessCallback<FAddress>& OnSuccess, const FFailureCallback& OnFailure)
298298
{
299-
DeployContractWithHash(Bytecode, PrivKey, ChainId, [=](const FAddress& Address, FUnsizedData Hash)
299+
DeployContractWithHash(Bytecode, PrivKey, ChainId, [OnSuccess](const FAddress& Address, FUnsizedData Hash)
300300
{
301301
OnSuccess(Address);
302302
}, OnFailure);

0 commit comments

Comments
 (0)