Skip to content

Commit

Permalink
Removed ElectionCreationSteps.ESTIMATE_BLOCK_TIMES because time is …
Browse files Browse the repository at this point in the history
…no longer estimated via blocks
  • Loading branch information
marcvelmer committed Feb 29, 2024
1 parent 03bb60b commit 3970773
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,6 @@ export class VocdoniSDKClient {
key: ElectionCreationSteps.GET_DATA_PIN,
};

yield {
key: ElectionCreationSteps.ESTIMATE_BLOCK_TIMES,
};

const electionTxData = ElectionCore.generateNewElectionTransaction(election, cid, account.address, account.nonce);
yield {
key: ElectionCreationSteps.GENERATE_TX,
Expand Down
2 changes: 0 additions & 2 deletions src/services/election.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export enum ElectionCreationSteps {
CENSUS_CREATED = 'census-created',
GET_ACCOUNT_DATA = 'get-account-data',
GET_DATA_PIN = 'get-data-pin',
ESTIMATE_BLOCK_TIMES = 'estimate-block-times',
GENERATE_TX = 'generate-tx',
SIGN_TX = 'sign-tx',
CREATING = 'creating',
Expand All @@ -53,7 +52,6 @@ export type ElectionCreationStepValue =
| { key: ElectionCreationSteps.CENSUS_CREATED }
| { key: ElectionCreationSteps.GET_ACCOUNT_DATA }
| { key: ElectionCreationSteps.GET_DATA_PIN }
| { key: ElectionCreationSteps.ESTIMATE_BLOCK_TIMES }
| { key: ElectionCreationSteps.GENERATE_TX }
| { key: ElectionCreationSteps.SIGN_TX }
| { key: ElectionCreationSteps.CREATING; txHash: string }
Expand Down

0 comments on commit 3970773

Please sign in to comment.