Skip to content

Commit

Permalink
#1751 multiple transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Jan 15, 2024
1 parent 028f6ba commit e6f7572
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/historicstate/hardhat/scripts/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ async function deployTestContract(): Promise<object> {
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;
Expand Down Expand Up @@ -217,7 +213,7 @@ async function sendMoneyWithoutConfirmation(): Promise<int> {
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();

Expand All @@ -235,6 +231,8 @@ async function callTestContractRun(deployedContract: any): Promise<void> {
nonce: currentNonce + 1,
});

expect(transferReceipt.blockNumber).not.to.be.null;


await getAndPrintTransactionTrace(transferReceipt.hash, TEST_CONTRACT_RUN_FILE_NAME);
await getBlockTrace(transferReceipt.blockNumber);
Expand Down

0 comments on commit e6f7572

Please sign in to comment.