From 1113e778baa0a9e674127d460f63d12ef28f77b2 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Wed, 28 Feb 2024 13:06:10 -0300 Subject: [PATCH] Add failing test --- yarn-project/end-to-end/src/e2e_deploy_contract.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yarn-project/end-to-end/src/e2e_deploy_contract.test.ts b/yarn-project/end-to-end/src/e2e_deploy_contract.test.ts index 828b534a5ff0..aecc86352b3c 100644 --- a/yarn-project/end-to-end/src/e2e_deploy_contract.test.ts +++ b/yarn-project/end-to-end/src/e2e_deploy_contract.test.ts @@ -194,11 +194,16 @@ describe('e2e_deploy_contract', () => { const owner = await registerRandomAccount(pxe); const initArgs: StatefulContractCtorArgs = [owner, 42]; const contract = await registerContract(testWallet, StatefulTestContract, initArgs); + logger.info(`Calling the constructor for ${contract.address}`); await contract.methods .constructor(...initArgs) .send() .wait(); + logger.info(`Checking if the constructor was run for ${contract.address}`); expect(await contract.methods.summed_values(owner).view()).toEqual(42n); + logger.info(`Calling a function that requires initialization on ${contract.address}`); + await contract.methods.create_note(owner, 10).send().wait(); + expect(await contract.methods.summed_values(owner).view()).toEqual(52n); }, 30_000, );