Skip to content

Commit e24bd63

Browse files
committed
Avoid going through wallet rpc for native transfer receipts
1 parent 43c1f60 commit e24bd63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Thirdweb/Core/Scripts/Wallet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ public async Task<TransactionResult> Transfer(string to, string amount, string c
349349
}
350350
else
351351
{
352-
var receipt = await ThirdwebManager.Instance.SDK.session.Web3.Eth.GetEtherTransferService().TransferEtherAndWaitForReceiptAsync(to, decimal.Parse(amount));
353-
return receipt.ToTransactionResult();
352+
var txHash = await ThirdwebManager.Instance.SDK.session.Web3.Eth.GetEtherTransferService().TransferEtherAsync(to, decimal.Parse(amount));
353+
return await Transaction.WaitForTransactionResult(txHash);
354354
}
355355
}
356356
}

0 commit comments

Comments
 (0)