Skip to content

Commit f1d389c

Browse files
committed
chore: remove type param
Signed-off-by: nikolay <[email protected]>
1 parent ce1d58f commit f1d389c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

packages/relay/src/lib/services/hapiService/hapiService.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,18 +271,17 @@ export default class HAPIService {
271271
* Configure Client
272272
* @param {Logger} logger
273273
* @param {string} hederaNetwork
274-
* @param {string | null} type
275274
* @returns Client
276275
*/
277-
private initClient(logger: Logger, hederaNetwork: string, type: string | null = null): Client {
276+
private initClient(logger: Logger, hederaNetwork: string): Client {
278277
let client: Client;
279278
if (hederaNetwork in constants.CHAIN_IDS) {
280279
client = Client.forName(hederaNetwork);
281280
} else {
282281
client = Client.forNetwork(JSON.parse(hederaNetwork));
283282
}
284283

285-
const operator = Utils.getOperator(logger, type);
284+
const operator = Utils.getOperator(logger);
286285
if (operator) {
287286
client.setOperator(operator.accountId, operator.privateKey);
288287
}

packages/relay/src/utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,14 @@ export class Utils {
124124
/**
125125
* Gets operator credentials based on the provided type.
126126
* @param {Logger} logger - The logger instance
127-
* @param {string | null} type - The type of operator (e.g. 'eth_sendRawTransaction')
128127
* @returns {Operator | null} The operator credentials or null if not found
129128
*/
130-
public static getOperator(logger: Logger, type: string | null = null): Operator | null {
129+
public static getOperator(logger: Logger): Operator | null {
131130
const operatorId: string = ConfigService.get('OPERATOR_ID_MAIN');
132131
const operatorKey: string = ConfigService.get('OPERATOR_KEY_MAIN');
133132

134133
if (!operatorId || !operatorKey) {
135-
logger.warn(`Invalid operatorId or operatorKey for ${type ?? 'main'} client.`);
134+
logger.warn(`Invalid operatorId or operatorKey for main client.`);
136135
return null;
137136
}
138137

packages/server/tests/acceptance/rpc_batch3.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ describe('@api-batch-3 RPC Server Acceptance Tests', function () {
538538
expect(res).to.eq('0x00000000000000000000000000000000000000000000000000000000000003e8');
539539
});
540540

541-
it('011 Should fail when calling msgValue with more value than available balance', async function () {
541+
// test is pending until fallback workflow to consensus node is removed, because this flow works when calling to consensus
542+
xit('011 Should fail when calling msgValue with more value than available balance', async function () {
542543
const callData = {
543544
...defaultCallData,
544545
data: '0xddf363d7',

0 commit comments

Comments
 (0)