@campnetwork/origin 1.3.0-alpha.1 → 1.3.0-alpha.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.
@@ -10338,7 +10338,7 @@ const FancyInput = ({ value, onChange, step, placeholder, type = "text", icon, l
10338
10338
  */
10339
10339
  const FileUpload = ({ onFileUpload, accept, maxFileSize, }) => {
10340
10340
  const auth = useAuth();
10341
- const { environment } = useContext(CampContext);
10341
+ useContext(CampContext);
10342
10342
  const { isAllowListed } = useUser();
10343
10343
  const effectiveMaxFileSize = isAllowListed ? undefined : maxFileSize;
10344
10344
  const [isDragging, setIsDragging] = useState(false);
@@ -10389,11 +10389,7 @@ const FileUpload = ({ onFileUpload, accept, maxFileSize, }) => {
10389
10389
  : 0; // Duration must be 0 for SINGLE_PAYMENT/X402
10390
10390
  const priceInWei = parseEther(price || "0");
10391
10391
  const computedRoyaltyBps = Math.floor(parseFloat(royaltyBps) * 100); // percentage to basis points
10392
- // Use USDC for X402, native token (zeroAddress) for other license types
10393
- const paymentToken = licenseType === LicenseType.X402
10394
- ? environment.USDC_CONTRACT_ADDRESS
10395
- : zeroAddress;
10396
- const license = createLicenseTerms(priceInWei, durationInSeconds, computedRoyaltyBps, paymentToken, licenseType);
10392
+ const license = createLicenseTerms(priceInWei, durationInSeconds, computedRoyaltyBps, zeroAddress, licenseType);
10397
10393
  const metadata = {
10398
10394
  name: selectedFile.name,
10399
10395
  description: `File uploaded by ${auth === null || auth === void 0 ? void 0 : auth.walletAddress} via the Origin SDK`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campnetwork/origin",
3
- "version": "1.3.0-alpha.1",
3
+ "version": "1.3.0-alpha.2",
4
4
  "main": "dist/core.cjs",
5
5
  "exports": {
6
6
  ".": {