import { c as getWalletProviderFromWalletAccount, n as isWaasWalletProvider } from "./InvalidParamError-BxBgwLQB.native.esm.js";
import { t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-CkH85cm5.native.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-CeoFLRbo.native.esm.js.map