-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ton): fix call data parsing #3711
Conversation
📝 WalkthroughWalkthroughThe changes reorganize the changelog documentation, update header levels, and remove redundant subsections. A new fixes section is introduced for TON call_data parsing. The test suite has been enhanced with an additional case to validate deposit and call ABI transaction parsing, along with adjustments to snake data tests. A new JSON fixture file for deposit and call transactions is added, and the bit string handling routines in the TLB module have been refactored to streamline marshalling and unmarshalling processes. Changes
Sequence Diagram(s)sequenceDiagram
participant TC as Test Case
participant GC as Gateway Contract
participant TL as TLB Module
TC->>GC: Load transaction fixture (JSON data)
GC->>TL: Parse transaction using UnmarshalSnakeCell
TL-->>GC: Return parsed transaction details
GC-->>TC: Provide transaction details
TC->>TC: Assert expected deposit, recipient, amount, and call data
Possibly related PRs
Suggested labels
Suggested reviewers
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (1)`**/*.go`: Review the Go code, point out issues relative to ...
🪛 markdownlint-cli2 (0.17.2)changelog.md5-5: Heading levels should only increment by one level at a time (MD001, heading-increment) 🔇 Additional comments (9)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but why the DepositAndCall E2E test didn't catch it?
because its contract doesn't check for message contents nor tries to decode ABI node/e2e/contracts/example/Example.sol Line 53 in 1288642
|
ABI-encoded call data was truncated:
invalid output (truncated)
Now fixed and passed as is:
Related: #2810
Summary by CodeRabbit