import { _ as getWalletProviderFromWalletAccount, n as isWaasWalletProvider } from "./InvalidParamError-DZjc7Tjc.esm.js";
import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-C9gQ9M80.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-B_8slAdm.esm.js.map