Skip to content

Conversation

@uniyalabhishek
Copy link
Contributor

@uniyalabhishek uniyalabhishek commented Dec 10, 2025

Fix transaction deserialization issues causing 422 errors in ROFL appd

  • Fix value field: Change u128 to u64 in TransactionValue enum (serde_json doesn't support u128 in untagged enums). Large values must use string format.
  • Fix hex field flexibility: to, data, and gas_limit now accept values with or without 0x prefix, and gas_limit accepts both numbers and strings.

@netlify
Copy link

netlify bot commented Dec 10, 2025

Deploy Preview for oasisprotocol-oasis-sdk ready!

Name Link
🔨 Latest commit 9bcb89b
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-oasis-sdk/deploys/6942bec41201e9000725e692
😎 Deploy Preview https://deploy-preview-2416--oasisprotocol-oasis-sdk.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

❌ Patch coverage is 84.21053% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.40%. Comparing base (24610a0) to head (9bcb89b).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
rofl-appd/src/routes/tx.rs 84.21% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2416      +/-   ##
==========================================
+ Coverage   48.33%   48.40%   +0.06%     
==========================================
  Files         223      223              
  Lines       15902    15935      +33     
==========================================
+ Hits         7686     7713      +27     
- Misses       8156     8162       +6     
  Partials       60       60              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@matevz matevz left a comment

Choose a reason for hiding this comment

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

IMO there is too much critical code like parsing numbers and hex values which is already implemented in the ethereum-types, serde and hex crates. We already include all of them from the oasis-runtime-sdk-evm crate.

@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/rofl-appd/fix-txn-submit branch 3 times, most recently from b003b06 to 4f4a541 Compare December 10, 2025 18:29
@uniyalabhishek uniyalabhishek self-assigned this Dec 11, 2025
@matevz
Copy link
Member

matevz commented Dec 11, 2025

FYI the python encryption field was moved to a separate #2418

@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/rofl-appd/fix-txn-submit branch from feb340d to 7778cfa Compare December 11, 2025 15:26
Copy link
Member

@ptrus ptrus left a comment

Choose a reason for hiding this comment

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

Looks mostly good, left a couple of minor suggestions!

@uniyalabhishek uniyalabhishek requested a review from ptrus December 17, 2025 14:06
feat(rofl-appd): add hex dep and simplify hex string deserialization

test(rofl-appd): add additional test for large ROSE transaction value

fix(rofl-appd): feedback changes
@uniyalabhishek uniyalabhishek force-pushed the uniyalabhishek/rofl-appd/fix-txn-submit branch from d5139ef to 9bcb89b Compare December 17, 2025 14:31
@uniyalabhishek uniyalabhishek merged commit b89a8af into main Dec 17, 2025
36 of 37 checks passed
@uniyalabhishek uniyalabhishek deleted the uniyalabhishek/rofl-appd/fix-txn-submit branch December 17, 2025 16:01
github-actions bot added a commit that referenced this pull request Dec 17, 2025
…niyalabhishek/rofl-appd/fix-txn-submit

fix(rofl-appd): improve transaction field deserialization flexibility b89a8af
github-actions bot added a commit to OasisUnofficial/oasis-sdk that referenced this pull request Dec 17, 2025
…sisprotocol/uniyalabhishek/rofl-appd/fix-txn-submit

fix(rofl-appd): improve transaction field deserialization flexibility b89a8af
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.

4 participants