Skip to content

Conversation

RoeeGross
Copy link
Collaborator

@RoeeGross RoeeGross commented Jul 28, 2025

This change is Reviewable

@RoeeGross RoeeGross self-assigned this Jul 28, 2025
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugbot free trial expires on July 29, 2025
Learn more in the Cursor dashboard.

/// Get metadata about the file (owner, size, timestamps, etc.)
fn get_metadata(self: @ComponentState<TContractState>, file_id: felt252) -> FileMetadata {
self.get_metadata(file_id)
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Infinite Recursion in Metadata Retrieval

The get_metadata function recursively calls itself (self.get_metadata(file_id)) instead of reading from the storage map. This leads to infinite recursion and a stack overflow. It should instead read from the metadata storage map using self.metadata.read(file_id).

Locations (1)

Fix in Cursor Fix in Web

pub enum Event {}


#[embeddable_as(DepositImpl)]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Incorrect Embeddable Attribute for FileStorage

The #[embeddable_as] attribute for the FileStorage component is incorrectly set to DepositImpl instead of FileStorageImpl (or similar), likely due to a copy-paste error from another component.

Locations (1)

Fix in Cursor Fix in Web

Copy link

codecov bot commented Jul 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@f87bc0a). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #94   +/-   ##
=======================================
  Coverage        ?   87.18%           
=======================================
  Files           ?       43           
  Lines           ?     1561           
  Branches        ?        0           
=======================================
  Hits            ?     1361           
  Misses          ?      200           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant