From e6f75724da74b965baa962255fe6e369031acf15 Mon Sep 17 00:00:00 2001 From: Stan Kladko <13399135+kladkogex@users.noreply.github.com> Date: Mon, 15 Jan 2024 16:59:48 +0000 Subject: [PATCH] #1751 multiple transactions --- test/historicstate/hardhat/scripts/trace.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/historicstate/hardhat/scripts/trace.ts b/test/historicstate/hardhat/scripts/trace.ts index 77f3181e1..7106021ce 100644 --- a/test/historicstate/hardhat/scripts/trace.ts +++ b/test/historicstate/hardhat/scripts/trace.ts @@ -174,10 +174,6 @@ async function deployTestContract(): Promise { const hash = deployedTestContract.deployTransaction.hash; console.log(`Contract deployed to ${deployedTestContract.address} at block ${deployBlockNumber.toString(16)} tx hash ${hash}`); - // await waitUntilNextBlock() - - //await getBlockTrace(deployBlockNumber); - //await getBlockTrace(deployBlockNumber); await getAndPrintTransactionTrace(hash, TEST_CONTRACT_DEPLOY_FILE_NAME); return deployedTestContract; @@ -217,7 +213,7 @@ async function sendMoneyWithoutConfirmation(): Promise { nonce: currentNonce }; - // Send the transaction + // Send the transaction and wait until it is submitted ot the queue const txResponse = signer.sendTransaction(tx); //await txResponse.wait(); @@ -235,6 +231,8 @@ async function callTestContractRun(deployedContract: any): Promise { nonce: currentNonce + 1, }); + expect(transferReceipt.blockNumber).not.to.be.null; + await getAndPrintTransactionTrace(transferReceipt.hash, TEST_CONTRACT_RUN_FILE_NAME); await getBlockTrace(transferReceipt.blockNumber);