diff --git a/src/gateway/gateway.service.ts b/src/gateway/gateway.service.ts index d160b63..e859ed7 100644 --- a/src/gateway/gateway.service.ts +++ b/src/gateway/gateway.service.ts @@ -136,7 +136,7 @@ export class GatewayService { throw new BadRequestException('Namehash missmatch'); } - if (supportedFunctions.includes(functionName)) { + if (!supportedFunctions.includes(functionName)) { throw new BadRequestException('Unsupported opperation ' + functionName); } diff --git a/src/gateway/resolver/database.resolver.ts b/src/gateway/resolver/database.resolver.ts index 1cae610..a1c85b0 100644 --- a/src/gateway/resolver/database.resolver.ts +++ b/src/gateway/resolver/database.resolver.ts @@ -57,6 +57,7 @@ export class GatewayDatabaseResolver implements GatewayResolver { if (!subname && !subname.id) { throw new NotFoundException(`Subname not found`); } + console.log("Found subname for name " + ensName, JSON.stringify(subname)); return subname; }; }