import { l as getWalletProviderFromWalletAccount, n as isWaasWalletProvider } from "./InvalidParamError-BmFmxeXx.esm.js";
import { t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-DO313zza.esm.js";

//#region src/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.ts
/** @not-instrumented */
const getWaasWalletProviderFromWalletAccount = ({ walletAccount }, client) => {
	const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
	if (!isWaasWalletProvider(walletProvider)) throw new NotWaasWalletAccountError({ walletAddress: walletAccount.address });
	return walletProvider;
};

//#endregion
export { getWaasWalletProviderFromWalletAccount as t };
//# sourceMappingURL=getWaasWalletProviderFromWalletAccount-CXv6xEJZ.esm.js.map