Skip to content

Commit

Permalink
Fix Fix Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
soer8647 committed Sep 14, 2023
1 parent 20d2748 commit fdccf7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions app/utils/transactionHandlers/HandlerFinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import TimeParametersHandler from './TimeParameterHandler';
import CooldownParametersHandler from './CooldownParametersHandler';
import PoolParametersHandler from './PoolParametersHandlers';
import { throwLoggedError } from '../basicHelpers';
import BlockEnergyLimitHandler from './BlockEnergyLimitHandler';

export function findAccountTransactionHandler(
transactionKind: TransactionKindId
Expand Down Expand Up @@ -235,10 +234,6 @@ export function findUpdateInstructionHandler(
return new UpdateInstructionHandlerTypeMiddleware(
new PoolParametersHandler()
);
case UpdateType.BlockEnergyLimit:
return new UpdateInstructionHandlerTypeMiddleware(
new BlockEnergyLimitHandler()
);
default:
return throwLoggedError(`Unsupported transaction type: ${type}`);
}
Expand Down
4 changes: 2 additions & 2 deletions app/utils/transactionTypes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UpdateQueues } from '@concordium/web-sdk';
import { NextUpdateSequenceNumbers } from '@concordium/web-sdk';
import type { Buffer } from 'buffer/';
import { FieldValues } from 'react-hook-form';
import { AccountPathInput } from '~/features/ledger/Path';
Expand Down Expand Up @@ -113,7 +113,7 @@ export interface UpdateInstructionHandler<T, S, P = UpdateInstruction>
*/
createTransaction: (
chainParameters: ChainParameters,
updateQueue: UpdateQueues,
nextUpdateSequenceNumbers: NextUpdateSequenceNumbers,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
fields: any,
effectiveTime: bigint,
Expand Down

0 comments on commit fdccf7a

Please sign in to comment.