@streamflow/stream 9.0.1 → 9.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2565,7 +2565,7 @@ var SolanaStreamClient = class extends BaseStreamClient {
2565
2565
  floorPrice
2566
2566
  } = streamParams;
2567
2567
  const { isNative, sender, computeLimit, computePrice, metadataPubKeys } = extParams;
2568
- invariant(!priceOracle && oracleType && oracleType !== "none", "Price oracle is required for the specified oracle type");
2568
+ invariant(priceOracle || !oracleType || oracleType === "none", "Price oracle is required for the specified oracle type");
2569
2569
  assertHasPublicKey(sender, "Sender's PublicKey is not available, check passed wallet adapter!");
2570
2570
  const recipientPublicKey = new PublicKey(recipient);
2571
2571
  const mintPublicKey = isNative ? NATIVE_MINT : new PublicKey(mint);