fix: patch moralis sdk to handle empty value in internal transactions#1272
Conversation
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>
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (2)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary
@moralisweb3/common-evm-utilsto handle empty stringvaluefields in internal transactionsSTATICCALLtype internal transactions return""forvalue, causing[C0500] Value is emptyerror in the SDK'sBigNumberParser.parseInt'0'for empty values:commonCore.BigNumber.create(data.value || '0')Test plan
getTransactionno longer throws[C0500] Value is emptyfor transactions withSTATICCALLinternal transactions🤖 Generated with Claude Code