import { g as getWalletProviderFromWalletAccount, n as isWaasWalletProvider } from "./InvalidParamError-BKr8fFc1.native.esm.js";
import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-rRFvljev.native.esm.js";

//#region src/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.ts
/** @notInstrumented */
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-C2GdfqUr.native.esm.js.map