Skip to content

Commit 8f82923

Browse files
chore: adds acceptance tests for debug_traceTransaction (#3877)
Signed-off-by: Konstantina Blazhukova <[email protected]>
1 parent 688545a commit 8f82923

File tree

5 files changed

+497
-138
lines changed

5 files changed

+497
-138
lines changed

packages/relay/src/lib/debug.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,13 @@ export class DebugImpl implements Debug {
410410
requestDetails,
411411
options,
412412
);
413+
414+
if (!response) {
415+
throw predefined.RESOURCE_NOT_FOUND(
416+
`Failed to retrieve contract results for transaction ${transactionIdOrHash}`,
417+
);
418+
}
419+
413420
return await this.formatOpcodesResult(response, options);
414421
} catch (e) {
415422
throw this.common.genericErrorHandler(e);

packages/relay/src/lib/validators/objectTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const OBJECTS_VALIDATIONS: { [key: string]: IObjectSchema } = {
102102
tracerConfigWrapper: {
103103
name: 'TracerConfigWrapper',
104104
failOnEmpty: true,
105-
failOnUnexpectedParams: false,
105+
failOnUnexpectedParams: true,
106106
properties: {
107107
tracer: {
108108
type: 'tracerType',

0 commit comments

Comments
 (0)