Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lukaszcz
Copy link
Collaborator

Not including them as recipients resulted in incorrect class logic - it checked if every consumed resource is a recipient. For the constructor message, the created object is the recipient, so it's consistent now.

@lukaszcz lukaszcz self-assigned this Sep 23, 2025
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 updates the message recipient handling in the AVM system to include ephemeral object resources in multi-method message recipients. The change addresses an issue where ephemeral objects were not properly considered as recipients, which caused incorrect class logic validation.

  • Changes the recipients field from a fixed-size vector to a dynamic list structure
  • Updates multi-method message generation to include both existing recipients and ephemeral objects
  • Modifies all message creation functions to use the new list-based recipient format

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
AVM/Message/Base.lean Changes recipients field from List.Vector to List ObjectId and updates default message
AVM/Ecosystem/Label/Base.lean Adds documentation comment for numObjectArgs function
AVM/Class/Translation/Tasks.lean Updates mkMessage function signatures to accept additional parameters for ephemeral object handling
AVM/Class/Translation/Messages.lean Converts all message creation functions from Vector.singleton to list syntax and adds ephemeral objects to multi-method recipients
AVM/Class/Translation/Logics.lean Updates logic validation to work with the new list-based recipients structure

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

@lukaszcz lukaszcz merged commit 2dffcd9 into main Sep 24, 2025
1 check passed
@lukaszcz lukaszcz deleted the fix-class-logic branch September 24, 2025 10:15
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.

3 participants