Skip to content

Commit

Permalink
chore: address comment + run in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Aug 30, 2024
1 parent 434aada commit 45e21fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions yarn-project/end-to-end/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ NETWORK_TEST:
e2e-p2p:
DO +E2E_TEST --test=./src/e2e_p2p_network.test.ts

e2e-devnet:
DO +E2E_TEST --test=./src/e2e_devnet.test.ts

e2e-2-pxes:
DO +E2E_TEST --test=./src/e2e_2_pxes.test.ts

Expand Down
1 change: 0 additions & 1 deletion yarn-project/end-to-end/src/e2e_devnet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ describe('e2e_devnet', () => {
const submitTxsTo = async (pxe: PXEService, numTxs: number) => {
const txs: SentTx[] = [];
for (let i = 0; i < numTxs; i++) {
// const tx = getSchnorrAccount(pxe, Fr.random(), GrumpkinScalar.random(), Fr.random()).deploy();
const accountManager = getSchnorrAccount(pxe, Fr.random(), GrumpkinScalar.random(), Fr.random());
const deployMethod = await accountManager.getDeployMethod();
await deployMethod.create({
Expand Down
12 changes: 6 additions & 6 deletions yarn-project/sequencer-client/src/sequencer/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,12 +513,12 @@ export class Sequencer {

if (committee.length === 0) {
return undefined;
} else {
if (!this.validatorClient) {
const msg = 'Missing validator client: Cannot collect attestations';
this.log.error(msg);
throw new Error(msg);
}
}

if (!this.validatorClient) {
const msg = 'Missing validator client: Cannot collect attestations';
this.log.error(msg);
throw new Error(msg);
}

const numberOfRequiredAttestations = Math.floor((committee.length * 2) / 3) + 1;
Expand Down

0 comments on commit 45e21fa

Please sign in to comment.