Skip to content

Commit

Permalink
Fix e2e deploy test
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Mar 25, 2024
1 parent 589d9cd commit e222cd3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions yarn-project/end-to-end/src/e2e_deploy_contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,12 @@ describe('e2e_deploy_contract', () => {
}, 60_000);

it('refuses to initialize the instance with wrong args via a public function', async () => {
// TODO(@spalladino): This tx is mined but reverts, we need to check revert flag once it's available
// Meanwhile, we check that its side effects did not come through as a means to assert it reverted
const whom = AztecAddress.random();
await contract.methods.public_constructor(whom, 43).send({ skipPublicSimulation: true }).wait();
const receipt = await contract.methods
.public_constructor(whom, 43)
.send({ skipPublicSimulation: true })
.wait({ dontThrowOnRevert: true });
expect(receipt.status).toEqual(TxStatus.REVERTED);
expect(await contract.methods.get_public_value(whom).view()).toEqual(0n);
}, 30_000);

Expand Down

0 comments on commit e222cd3

Please sign in to comment.