const require_InvalidParamError = require('./InvalidParamError-CGZRSAOn.cjs');
const require_NotWaasWalletAccountError = require('./NotWaasWalletAccountError-cIj987D7.cjs');

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

//#endregion
Object.defineProperty(exports, 'getWaasWalletProviderFromWalletAccount', {
  enumerable: true,
  get: function () {
    return getWaasWalletProviderFromWalletAccount;
  }
});
//# sourceMappingURL=getWaasWalletProviderFromWalletAccount-BaxUhLEp.cjs.map