Skip to content

Conversation

@krebernisak
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings August 19, 2025 09:43
@github-actions
Copy link

👋 krebernisak, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for a new "TopUp" message type to the CallProxy contract, allowing the contract to receive TON coins for maintenance purposes. It also performs some code cleanup by removing debug console.log statements and consolidating duplicate chainId values in tests.

  • Implements CallProxy_TopUp message with opcode and encoding/decoding functionality
  • Adds message handling logic in the Tolk contract to accept top-up funds without forwarding
  • Refactors test code to use a centralized chainId variable instead of duplicated literals

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
contracts/wrappers/mcms/CallProxy.ts Adds TopUp message type, opcode definition, and message encoding/decoding builders
contracts/contracts/mcms/call_proxy.tolk Implements TopUp message handling logic that accepts funds without proxying
contracts/tests/mcms/CallProxy.spec.ts New test file for CallProxy contract with basic deployment and opcode verification tests
contracts/tests/mcms/Integration.spec.ts Refactors hardcoded chainId values to use a centralized variable
contracts/wrappers/mcms/MCMS.ts Removes debug console.log statement and simplifies return statement formatting

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@patricios-space patricios-space left a comment

Choose a reason for hiding this comment

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

Looks good! CallProxy.spec.ts collides with one of the tests suite files, but I guess we can merge them.

@krebernisak krebernisak merged commit bdff7c6 into main Aug 22, 2025
22 checks passed
@krebernisak krebernisak deleted the feat/callproxy-rent branch August 22, 2025 14: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.

2 participants