diff options
-rw-r--r-- | packages/contracts/src/utils/assertions.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 |