From 1e4c3ed22b2409c0f9581cbd763bd1abc4ddcc33 Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Fri, 29 Jun 2018 15:21:00 -0700 Subject: Change getTransactionReceipt to awaitTransactionMined --- packages/contracts/src/utils/assertions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/contracts/src/utils/assertions.ts b/packages/contracts/src/utils/assertions.ts index 2ba8f9fb1..baba892d3 100644 --- a/packages/contracts/src/utils/assertions.ts +++ b/packages/contracts/src/utils/assertions.ts @@ -74,7 +74,7 @@ export async function expectRevertReasonOrAlwaysFailingTransactionAsync( let txReceiptStatus: string | 0 | 1 | null; if (typeof result === 'string') { // Result is a txHash. We need to make a web3 call to get the receipt. - const txReceipt = await web3Wrapper.getTransactionReceiptAsync(result); + const txReceipt = await web3Wrapper.awaitTransactionMinedAsync(result); txReceiptStatus = txReceipt.status; } else if ('status' in result) { // Result is a TransactionReceiptWithDecodedLogs or TransactionReceipt -- cgit v1.2.3