Skip to content

Commit 5a7950a

Browse files
committed
addresses pR comments
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
1 parent 676f0bd commit 5a7950a

File tree

6 files changed

+5
-12
lines changed

6 files changed

+5
-12
lines changed

packages/relay/src/lib/clients/sdkClient.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services'
44
import {
55
AccountId,
66
Client,
7-
ContractByteCodeQuery,
87
ContractCallQuery,
98
ContractFunctionResult,
109
ContractId,

packages/relay/src/lib/debug.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { rpcMethod, rpcParamValidationRules } from './decorators';
1313
import { predefined } from './errors/JsonRpcError';
1414
import { CommonService } from './services';
1515
import { CacheService } from './services/cacheService/cacheService';
16-
import HAPIService from './services/hapiService/hapiService';
1716
import { ICallTracerConfig, IOpcodeLoggerConfig, ITracerConfig, ParamType, RequestDetails } from './types';
17+
1818
/**
1919
* Represents a DebugService for tracing and debugging transactions.
2020
*
@@ -50,14 +50,8 @@ export class DebugImpl implements Debug {
5050
* @param {MirrorNodeClient} mirrorNodeClient - The client for interacting with the mirror node.
5151
* @param {Logger} logger - The logger used for logging output from this class.
5252
* @param {CacheService} cacheService - Service for managing cached data.
53-
* @param {HAPIService} hapiService - Hapi service for making SDK calls.
5453
*/
55-
constructor(
56-
mirrorNodeClient: MirrorNodeClient,
57-
logger: Logger,
58-
cacheService: CacheService,
59-
hapiService: HAPIService,
60-
) {
54+
constructor(mirrorNodeClient: MirrorNodeClient, logger: Logger, cacheService: CacheService) {
6155
this.logger = logger;
6256
this.common = new CommonService(mirrorNodeClient, logger, cacheService);
6357
this.mirrorNodeClient = mirrorNodeClient;

packages/relay/src/lib/relay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class Relay {
195195
this.eventEmitter,
196196
);
197197

198-
this.debugImpl = new DebugImpl(this.mirrorNodeClient, logger, this.cacheService, hapiService);
198+
this.debugImpl = new DebugImpl(this.mirrorNodeClient, logger, this.cacheService);
199199
this.adminImpl = new AdminImpl(this.cacheService);
200200

201201
this.hbarSpendingPlanConfigService = new HbarSpendingPlanConfigService(

packages/relay/src/lib/services/factories/transactionReceiptFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class TransactionReceiptFactory {
5454
effectiveGasPrice: gasPriceForTimestamp,
5555
from: constants.ZERO_ADDRESS_HEX,
5656
gasUsed: constants.ZERO_HEX,
57-
logs: syntheticLogs,
57+
logs: [syntheticLogs[0]],
5858
logsBloom: LogsBloomUtils.buildLogsBloom(syntheticLogs[0].address, syntheticLogs[0].topics),
5959
root: constants.DEFAULT_ROOT_HASH,
6060
status: constants.ONE_HEX,

packages/relay/tests/lib/services/eth/filter.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ let cacheService: CacheService;
3434

3535
describe('Filter API Test Suite', async function () {
3636
this.timeout(10000);
37-
const { hapiServiceInstance } = generateEthTestEnv();
3837
const requestDetails = new RequestDetails({ requestId: uuid(), ipAddress: '0.0.0.0' });
3938
const filterObject = {
4039
toBlock: 'latest',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe('@erc20 Acceptance Tests', async function () {
3434
let initialHolder;
3535
let anotherAccount;
3636
let requestId;
37+
let recipient;
3738

3839
const contracts: [any] = [];
3940

0 commit comments

Comments
 (0)