Skip to content
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

Implement the send() function for contracts #102

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Implement the send() function for contracts #102

merged 1 commit into from
Sep 26, 2024

Conversation

virgil-serbanuta
Copy link
Member

Fixes #38

@@ -28,7 +28,7 @@ module MX-RUST-MODULES-ADDRESS
( struct
( #token("ManagedAddress", "Identifier"):Identifier
, #token("mx_address_value", "Identifier"):Identifier |-> AddressValueId:Int
_:Map
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you elaborate on a scenario where a non-empty map here should prevent the rewriting operation of rustValueToMx? This question is more for clarification purposes.

Copy link
Member Author

Choose a reason for hiding this comment

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

This map should always be empty. Forcing an empty map here similar to an assertion - if we ever change the definition of the "ManagedAddress" to include more fields, this rule will fail to apply and we will have to update it.

@virgil-serbanuta virgil-serbanuta merged commit 5481094 into main Sep 26, 2024
1 check passed
@virgil-serbanuta virgil-serbanuta deleted the send branch September 26, 2024 20:24
ACassimiro added a commit that referenced this pull request Sep 27, 2024
* Implement TokenIdentifier (#100)

* Mutable variables (#105)

* Update K to 149 (#99) (#101)

Co-authored-by: Virgil <[email protected]>

* Introducing mutable variables and preventing override on immutable ones

* Adding minor comments

* Update K to 149 (#99) (#104)

Co-authored-by: Virgil <[email protected]>

* Removing restrictions over reassignments of immutable variables

* [Fix] Removing restrictions over reassignments of immutable variables

* Addressing review comments

---------

Co-authored-by: Virgil <[email protected]>

* Implement the send() function for contracts (#102)

* Enabling assignments on tuples with let expressions (#107)

* Enabling assignments on tuples with let expressions

* Addressing comments

* Implement call_value() (#103)

* BigUint operations (#106)

---------

Co-authored-by: Virgil <[email protected]>
ACassimiro added a commit that referenced this pull request Sep 30, 2024
* Updating to match main (#109)

* Implement TokenIdentifier (#100)

* Mutable variables (#105)

* Update K to 149 (#99) (#101)

Co-authored-by: Virgil <[email protected]>

* Introducing mutable variables and preventing override on immutable ones

* Adding minor comments

* Update K to 149 (#99) (#104)

Co-authored-by: Virgil <[email protected]>

* Removing restrictions over reassignments of immutable variables

* [Fix] Removing restrictions over reassignments of immutable variables

* Addressing review comments

---------

Co-authored-by: Virgil <[email protected]>

* Implement the send() function for contracts (#102)

* Enabling assignments on tuples with let expressions (#107)

* Enabling assignments on tuples with let expressions

* Addressing comments

* Implement call_value() (#103)

* BigUint operations (#106)

---------

Co-authored-by: Virgil <[email protected]>

* Modifying pyk version

* Modifying krun dir_paths to appropriate targets

---------

Co-authored-by: Virgil <[email protected]>
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.

Implementations - Send - Rust + Mx
2 participants