From 994f5bb7e32498a2f223bf4ecd6ce3f12d454e43 Mon Sep 17 00:00:00 2001 From: DChan0319 Date: Fri, 29 Sep 2023 12:20:15 -0700 Subject: [PATCH] [DT-902] chore: Making sure to throw unsupported method for Ens multiChainAddr() --- src/Resolution.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Resolution.ts b/src/Resolution.ts index 160dd1f5..76c7ad25 100644 --- a/src/Resolution.ts +++ b/src/Resolution.ts @@ -538,7 +538,11 @@ export default class Resolution { const recordKey = `crypto.${ticker.toUpperCase()}.version.${chain.toUpperCase()}.address`; return this.callServiceForDomain(domain, async (service) => { if (service instanceof Ens) { - return await service.addr(domain, ticker); + throw new ResolutionError(ResolutionErrorCode.UnsupportedMethod, { + methodName: 'multiChainAddr', + domain, + method: service.name, + }); } return await service.record(domain, recordKey);