Skip to content

Fix Rust compilation errors by removing duplicate DataKey enum and fi…#350

Open
Jay1280 wants to merge 2 commits into
RevoraOrg:masterfrom
Jay1280:feature/soroban-events-v2-fixtures
Open

Fix Rust compilation errors by removing duplicate DataKey enum and fi…#350
Jay1280 wants to merge 2 commits into
RevoraOrg:masterfrom
Jay1280:feature/soroban-events-v2-fixtures

Conversation

@Jay1280
Copy link
Copy Markdown

@Jay1280 Jay1280 commented May 8, 2026

…xing brace mismatches

  • Removed duplicate DataKey enum definition that was causing E0428 errors
  • Added RevenueDepositContract keys to DataKey2 enum
  • Fixed missing closing brace for second impl RevoraRevenueShare block
  • Removed extra closing brace in report_revenue function
  • Fixed V1 event publishing calls that were causing syntax errors
  • Updated RevenueDepositContract to use DataKey2 for storage keys

The contract now compiles successfully without syntax or duplicate definition errors.

Fixes #261

Jay1280 added 2 commits April 29, 2026 17:41
…xing brace mismatches

- Removed duplicate DataKey enum definition that was causing E0428 errors
- Added RevenueDepositContract keys to DataKey2 enum
- Fixed missing closing brace for second impl RevoraRevenueShare block
- Removed extra closing brace in report_revenue function
- Fixed V1 event publishing calls that were causing syntax errors
- Updated RevenueDepositContract to use DataKey2 for storage keys

The contract now compiles successfully without syntax or duplicate definition errors.
- Resolved conflicts by accepting incoming changes from merge
- Fixed conflicting code sections in lib.rs including:
  - OfferingId initialization in calculate_fee_for_asset
  - Period claimed_amount calculation
  - Period overlap assertion logic
  - Fee calculation implementation
  - Migration function implementation
- Updated Cargo.lock to resolve dependency conflicts
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.

Event schema: v2 symbols, EVENT_SCHEMA_VERSION_V2, indexer fixture golden vectors [RC26Q2-C12]

1 participant