import { ethers as e } from "ethers";
//#region libs/shared/common/src/functions/utils/getSignerFromContract.ts
var t = (t) => {
	let { runner: n } = t;
	if (!(n instanceof e.AbstractSigner)) throw Error("expected signer");
	return n;
}, n = (e) => {
	let { runner: t } = e;
	if (!t) throw Error("expected provider");
	return t.provider ?? t;
};
//#endregion
export { n as getProviderFromContract, t as getSignerFromContract };
