Skip to content

Commit

Permalink
revert: removed unnecesorry change of updateConsensusKey in rpc-batch…
Browse files Browse the repository at this point in the history
…-provider

re #2065
  • Loading branch information
hui-an-yang committed Nov 7, 2022
1 parent 2992fcf commit edd3f63
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packages/taquito/src/batch/rpc-batch-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
createTxRollupBatchOperation,
createTransferTicketOperation,
createIncreasePaidStorageOperation,
createUpdateConsensusKeyOperation,
} from '../contract/prepare';
import { BatchOperation } from '../operations/batch-operation';
import { OperationEmitter } from '../operations/operation-emitter';
Expand All @@ -32,7 +31,6 @@ import {
TxRollupBatchParams,
TransferTicketParams,
IncreasePaidStorageParams,
UpdateConsensusKeyParams,
} from '../operations/types';
import { OpKind } from '@taquito/rpc';
import { ContractMethodObject } from '../contract/contract-methods/contract-method-object-param';
Expand Down Expand Up @@ -175,17 +173,6 @@ export class OperationBatch extends OperationEmitter {
return this;
}

/**
*
* @description Add an operation to update consensus key to the batch
*
* @param params UpdateConsensusKey operation parameter
*/
withUpdateConsensusKey(params: UpdateConsensusKeyParams) {
this.operations.push({ kind: OpKind.UPDATE_CONSENSUS_KEY, ...params });
return this;
}

/**
*
* @description Add an operation to originate a rollup to the batch
Expand Down Expand Up @@ -236,10 +223,6 @@ export class OperationBatch extends OperationEmitter {
return createIncreasePaidStorageOperation({
...param,
});
case OpKind.UPDATE_CONSENSUS_KEY:
return createUpdateConsensusKeyOperation({
...param,
});
case OpKind.TX_ROLLUP_ORIGINATION:
return createTxRollupOriginationOperation({
...param,
Expand Down Expand Up @@ -284,9 +267,6 @@ export class OperationBatch extends OperationEmitter {
case OpKind.INCREASE_PAID_STORAGE:
this.withIncreasePaidStorage(param);
break;
case OpKind.UPDATE_CONSENSUS_KEY:
this.withUpdateConsensusKey(param);
break;
case OpKind.TX_ROLLUP_ORIGINATION:
this.withTxRollupOrigination(param);
break;
Expand Down

0 comments on commit edd3f63

Please sign in to comment.