Skip to content

fix: patch moralis sdk to handle empty value in internal transactions#1272

Merged
kaladinlight merged 1 commit into
developfrom
fix/moralis-empty-value-patch
Apr 6, 2026
Merged

fix: patch moralis sdk to handle empty value in internal transactions#1272
kaladinlight merged 1 commit into
developfrom
fix/moralis-empty-value-patch

Conversation

@kaladinlight
Copy link
Copy Markdown
Member

Summary

  • Patches @moralisweb3/common-evm-utils to handle empty string value fields in internal transactions
  • STATICCALL type internal transactions return "" for value, causing [C0500] Value is empty error in the SDK's BigNumberParser.parseInt
  • Falls back to '0' for empty values: commonCore.BigNumber.create(data.value || '0')

Test plan

  • Verify getTransaction no longer throws [C0500] Value is empty for transactions with STATICCALL internal transactions
  • Verify existing transaction fetching still works for normal internal transactions with non-empty values

🤖 Generated with Claude Code

STATICCALL internal transactions return "" for value, causing [C0500] Value is empty
error in BigNumberParser.parseInt. Fall back to '0' for empty values.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kaladinlight kaladinlight requested a review from a team as a code owner April 6, 2026 21:28
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 6, 2026

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (2)
  • .yarn/patches/@moralisweb3-common-evm-utils-npm-2.27.2-e6cbe4fc9a.patch is excluded by !**/.yarn/**
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f19aa44c-332f-407f-ba4e-94bd870c6144

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/moralis-empty-value-patch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kaladinlight kaladinlight merged commit fd48a7b into develop Apr 6, 2026
3 checks passed
@kaladinlight kaladinlight deleted the fix/moralis-empty-value-patch branch April 6, 2026 22:08
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