diff --git a/src.ts/contract/contract.ts b/src.ts/contract/contract.ts index 4c972667a9..208b0716a6 100644 --- a/src.ts/contract/contract.ts +++ b/src.ts/contract/contract.ts @@ -695,7 +695,11 @@ export class BaseContract implements Addressable, EventEmitterable { - if (addr == null) { throw new Error("TODO"); } + if (addr == null) { + throw makeError("an ENS name used for a contract target must be correctly configured", "UNCONFIGURED_NAME", { + value: target + }); + } getInternal(this).addr = addr; return addr; });