import{isAddress as o}from"@ethersproject/address";import{AddressZero as i}from"@ethersproject/constants";import{Contract as c}from"@ethersproject/contracts";function f(r,t){return r.getSigner(t).connectUnchecked()}function g(r,t){return t?f(r,t):r}function S(r,t,e,n){if(!o(r)||r===i)throw Error(`Invalid 'address' parameter '${r}'.`);return new c(r,t,g(e,n))}export{S as getContract};
