@streamflow/stream 9.0.0 → 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.
package/dist/esm/index.js CHANGED
@@ -5159,7 +5159,7 @@ var SolanaStreamClient = class extends BaseStreamClient {
5159
5159
  floorPrice
5160
5160
  } = streamParams;
5161
5161
  const { isNative, sender, computeLimit, computePrice, metadataPubKeys } = extParams;
5162
- invariant(!priceOracle && oracleType && oracleType !== "none", "Price oracle is required for the specified oracle type");
5162
+ invariant(priceOracle || !oracleType || oracleType === "none", "Price oracle is required for the specified oracle type");
5163
5163
  assertHasPublicKey(sender, "Sender's PublicKey is not available, check passed wallet adapter!");
5164
5164
  const recipientPublicKey = new PublicKey(recipient);
5165
5165
  const mintPublicKey = isNative ? NATIVE_MINT : new PublicKey(mint);