Skip to content

Commit

Permalink
fix: build error after rebase from main
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Yanev <victor.yanev@limechain.tech>
  • Loading branch information
victor-yanev committed Dec 17, 2024
1 parent dadab2f commit c00bb51
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
3 changes: 0 additions & 3 deletions packages/relay/src/lib/relay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ export class RelayImpl implements Relay {
const hapiService = new HAPIService(logger, register, this.cacheService, this.eventEmitter, hbarLimitService);

this.clientMain = hapiService.getMainClientInstance();
if (this.clientMain.operatorAccountId) {
hbarLimitService.setOperatorAddress(this.clientMain.operatorAccountId.toSolidityAddress());
}

this.web3Impl = new Web3Impl(this.clientMain);
this.netImpl = new NetImpl(this.clientMain);
Expand Down
3 changes: 0 additions & 3 deletions packages/relay/src/lib/services/hapiService/hapiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,6 @@ export default class HAPIService {
this.clientMain = this.initClient(this.logger, this.hederaNetwork);
this.client = this.initSDKClient(this.logger);
this.resetCounters();
if (this.clientMain.operatorAccountId) {
this.hbarLimitService.setOperatorAddress(this.clientMain.operatorAccountId.toSolidityAddress());
}
}

/**
Expand Down
12 changes: 2 additions & 10 deletions packages/relay/src/lib/services/hbarLimitService/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*-
*
* Hedera JSON RPC Relay
*
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
* Copyright (C) 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -171,14 +171,6 @@ export class HbarLimitService implements IHbarLimitService {
return this.isHBarRateLimiterEnabled;
}

/**
* Sets the operator address for the rate limiter. Used for tracking operator expenses.
* @param {string} operatorAddress - The EVM address of the operator.
*/
setOperatorAddress(operatorAddress: string) {
this.operatorAddress = prepend0x(operatorAddress);
}

/**
* Resets the {@link HbarSpendingPlan#amountSpent} field for all existing plans.
* @param {RequestDetails} requestDetails - The request details used for logging and tracking.
Expand Down

0 comments on commit c00bb51

Please sign in to comment.