We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be518c3 commit d160bacCopy full SHA for d160bac
1 file changed
packages/providers/src.ts/base-provider.ts
@@ -383,11 +383,16 @@ export class Resolver implements EnsResolver {
383
384
try {
385
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
+ }
391
if (parseBytes) { result = _parseBytes(result, 0); }
392
return result;
393
} catch (error) {
394
if (error.code === Logger.errors.CALL_EXCEPTION) { return null; }
- return null;
395
+ throw error;
396
}
397
398
0 commit comments