Skip to content

Commit

Permalink
#1545 state locking
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Jul 17, 2024
1 parent 9ec0cfa commit 1c6ab4f
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ 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}`);


const Tracer = await ethers.getContractFactory("Tracer");
const tracer = await Tracer.attach(deployedTestContract.address);
let result = await tracer.mint2(1000);

console.log("Got result");

console.log(result);

return deployedTestContract;

}
Expand Down Expand Up @@ -185,16 +194,23 @@ async function executeRevert(deployedContract: any): Promise<string> {
async function main(): Promise<void> {

let deployedContract = await deployTestContract();





DEPLOYED_CONTRACT_ADDRESS_LOWER_CASE = deployedContract.address.toString().toLowerCase();



while (true) {

const firstMintHash: string = await executeTransferAndThenTestContractMintInSingleBlock(deployedContract);

const secondTransferHash: string = await sendTransferWithConfirmation();


const secondMintHash: string = await executeMintCall(deployedContract);
const secondMintHash: string = await executeMintCall(deployedContract);


const revertHash: string = await executeRevert(deployedContract);
Expand Down

0 comments on commit 1c6ab4f

Please sign in to comment.