Skip to content

Commit d160bac

Browse files
committed
Ignore errors when resolving ENS resolver properties.
1 parent be518c3 commit d160bac

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/providers/src.ts/base-provider.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,16 @@ export class Resolver implements EnsResolver {
383383

384384
try {
385385
let result = await this.provider.call(tx);
386+
if ((arrayify(result).length % 32) === 4) {
387+
logger.throwError("resolver threw error", Logger.errors.CALL_EXCEPTION, {
388+
transaction: tx, data: result
389+
});
390+
}
386391
if (parseBytes) { result = _parseBytes(result, 0); }
387392
return result;
388393
} catch (error) {
389394
if (error.code === Logger.errors.CALL_EXCEPTION) { return null; }
390-
return null;
395+
throw error;
391396
}
392397
}
393398

0 commit comments

Comments
 (0)